Liquid glass

From moasq/nanowave · View interactive version

Liquid glass is an AI agent skill from the GitHub repository moasq/nanowave. iOS 26 Liquid Glass material: glassEffect modifier, placement rules, modifier ordering, interactivity constraints. Use when applying glass effects, using translucent materials, or styling toolbars/tab bars for iOS 26+. Triggers: glassEffect, .glass, material, translucent, liquid glass, iOS 26, toolb

How to use this skill

Skill file

Liquid Glass

iOS 26 introduces Liquid Glass as the primary surface material. Apply it to key UI surfaces.

WHERE TO APPLY .glassEffect():

WHERE NOT TO APPLY:

MODIFIER ORDER (CRITICAL):

// CORRECT — glass AFTER layout modifiers
Text("Label")
    .font(AppTheme.Fonts.headline)
    .padding()
    .glassEffect(.regular, in: .rect(cornerRadius: 12))

// WRONG — glass before padding
Text("Label")
    .glassEffect()
    .padding()

INTERACTIVITY:

GROUPING:

GlassEffectContainer(spacing: 12) {
    HStack(spacing: 12) {
        ActionButton(icon: "pencil")
            .glassEffect(.regular.interactive(), in: .circle)
        ActionButton(icon: "trash")
            .glassEffect(.regular.interactive(), in: .circle)
    }
}

PROMINENCE:

TINTING:

LIST ROWS WITH GLASS:

List(items) { item in
    ItemRow(item: item)
        .listRowBackground(
            Rectangle()
                .glassEffect(.regular.interactive(), in: .rect(cornerRadius: 10))
                .padding(.horizontal, 4)
        )
}
.scrollContentBackground(.hidden)

BUTTON STYLES:

Button("Save") { save() }
    .buttonStyle(.glassProminent)
Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.