GlassBodyMode enum

Controls how the glass body blends color over the background.

Matches Apple's iOS 26 Liquid Glass material styling in Swift / UIKit:

  • adaptive: matches Glass.regular — adaptive luminance-preserving tint that takes the color's hue while holding the background's perceived brightness.
  • clear: matches Glass.clear — direct alpha-composited tint with no luminance normalization, preserving exact design token hex values while retaining specular, Fresnel, and rim physics.
Inheritance
Available extensions

Values

adaptive → const GlassBodyMode

Adaptive luminance-preserving tint (default, matches Apple's Glass.regular).

clear → const GlassBodyMode

Direct alpha-composite tint with no luminance normalization (matches Apple's Glass.clear). Preserves exact design token hex values while retaining specular, Fresnel, and rim physics.

Properties

hashCode → int
The hash code for this object.
no setterinherited
index → int
A numeric identifier for the enumerated value.
no setterinherited
name → String

Available on Enum, provided by the EnumName extension

The name of the enum value.
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited

Constants

values → const List<GlassBodyMode>
A constant List of the values in this enum, in order of their declaration.