Skip to content

Liquid Glass

The current glass implementation is centered on a single reusable component: GlassToolbarContainer.

  • ios/SwiftLaunch/UI/Components/GlassToolbarContainer.swift — availability-gated glass toolbar container
  • ios/SwiftLaunch/UI/Theme/BrandColors.swift — brand colors used across the UI

GlassToolbarContainer chooses a visual style at runtime:

enum VisualStyle: Equatable {
case liquidGlass
case materialFallback
}

Resolution logic:

  • uses .liquidGlass on iOS 26+
  • uses .materialFallback on iOS 17–25

On iOS 26+, it renders:

GlassEffectContainer {
toolbarRow
.glassEffect(.regular, in: toolbarShape)
}

Fallback rendering:

toolbarRow
.background(.ultraThinMaterial, in: toolbarShape)
GlassToolbarContainer(
title: "Dashboard",
leading: AnyView(Image(systemName: "person.crop.circle.fill")),
trailing: AnyView(Image(systemName: "gearshape.fill"))
) {
Text("Content")
}
  • The shipped liquid-glass behavior is currently concentrated in GlassToolbarContainer.
  • GlassToolbarContainer currently includes its own preview, but there are no production call sites yet.