LiquidGlassHelper

public enum LiquidGlassHelper

A helper utility that determines whether modern Liquid Glass UI treatments should be adopted based on system availability, Xcode build version, and compatibility flags.

  • A Boolean value indicating whether components should render using Liquid Glass UI effects.

    This property evaluates OS availability and compatibility configurations:

    • iOS 27 / watchOS 27+: Evaluates hostAppXcodeVersion. UIDesignRequiresCompatibility is only honored when compiled with Xcode 26 (DTXcode < 2700). Apps built with Xcode 27+ have the flag ignored and will return true.
    • iOS 26 / watchOS 26: Returns true unless UIDesignRequiresCompatibility is set on iOS.
    • Older OS versions: Always returns false.

    Declaration

    Swift

    public static var usesLiquidGlassUI: Bool { get }