A SwiftUI sandbox for iOS 26's Liquid Glass shapes. Each screen walks through one shape's API surface with side-by-side examples and short footnotes explaining why each variant resolves the way it does.
- Xcode 26.1+
- iOS 26.1+ (iPhone or iPad)
Open LiquidGlassDemo.xcodeproj and run the LiquidGlassDemo scheme on an iOS 26.1 simulator or device.
ConcentricRectangleDemoView covers eleven cases:
init()— default concentric behaviour against the enclosing section.init(corners: .concentric)— explicit form of #1.isUniform: falsevstrueunder asymmetric padding — top/bottom radii diverge vs collapse to the largest.init(corners: .fixed(0))— non-concentric sharp corners.- Independent per-corner radii (
topLeadingCorner:/topTrailingCorner:/ …). uniformTopCorners/uniformBottomCorners— sheet-card silhouette.uniformLeadingCorners/uniformTrailingCorners— attached-pill silhouette..concentric(minimum: .fixed(20))— minimum-radius floor when padding would otherwise resolve to 0..rect(corners: .concentric)via theShapefactory..rect(corners: .concentric(minimum: .fixed(10)))— factory variant with a floor.- Photo-strip clip — Apple's canonical example of thumbnails inheriting the section radius.