Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Documents the iOS 26 Liquid Glass design system for building translucent, interactive glass materials in SwiftUI, UIKit and WidgetKit.
50% 100%+50 ptsof test cases passed
Passed 22 of 22 test cases with the skill, and 11 of 22 without it.
3 of 3 safety checks passed
Not used yet
1 forkA fork is a copy of this skill that someone made so they could edit it for their own use. The original doesn't change.
实现 Apple 灵动玻璃(Liquid Glass)的设计模式 — 这是一种动态材质,可以模糊背后的内容,反射周围内容的颜色和光影,并对触摸和指针交互做出反应。涵盖了 SwiftUI、UIKit 和 WidgetKit 的集成。
为任何视图添加灵动玻璃效果的最简单方法:
Text("Hello, World!")
.font(.title)
.padding()
.glassEffect() // 默认:常规变体,胶囊形状
Text("Hello, World!")
.font(.title)
.padding()
.glassEffect(.regular.tint(.orange).interactive(), in: .rect(cornerRadius: 16.0))
关键自定义选项:
.regular — 标准玻璃效果.tint(Color) — 添加颜色提亮以突出显示.interactive() — 响应触摸和指针交互.capsule(默认)、.rect(cornerRadius:)、.circlePublished skills whose descriptions closely match this one, with their benchmark result.
Skills that do similar work, with their benchmark result.
Next to this one in the catalogue, plus more from the same author.