Peter Steinberger

Swiftui Liquid Glass

開発v1.0.0
作者:Peter Steinberger更新日 2026-05-11swiftui-liquid-glass@clawhub_steipete/swiftui-liquid-glass
フロントエンド開発

AlphaMoatによると、2026-09時点でSwiftui Liquid Glassのダウンロード数は4,809、スター数は16で、AIスキル全体5,078件中1,957位、開発では577件中252位です。

インストール数
590
ダウンロード数
4809
スター数
16
総合順位
#1,957
全体の上位 39% · 開発の上位 44%
プラットフォームインストール数ダウンロード数スター数コメント
ClawHub ↗149454116-
SkillHub ↗590480916—

プラットフォームごとに集計方法と集計時点が異なります。

このスキルでできること

Liquid Glass を取り入れた SwiftUI の機能を実装、査読、作り直すために使い、自作の見た目より標準の API やガラス調のボタンスタイルを優先します。ガラスを使うべき場所と避ける場所、修飾子の順序、形状とコンテナの配置、可用性の判定と妥当な代替まで確認します。操作できる要素にだけ対話的なガラスを使い、形が変わる遷移はビューの階層が変わる場合に限ります。 Liquid Glass を求める依頼向けの文書ガイダンスです。Apple のより広いデザイン作業に適用しない場合は、その旨を明示してください。

資料公開日 2026-10-27

できること

  • 既存の画面を Liquid Glass の作風に作り直す
  • あるガラス効果の修飾子の順序を査読する

使う場面

  • 新しい画面に Liquid Glass を採り入れるとき
  • ガラスの階層がおかしいと感じたとき

プロンプト例

スキルのドキュメントをもとに生成した例であり、実際の実行結果ではありません。

この SwiftUI 画面を Liquid Glass の作風にしてください
このガラス効果の修飾子の順序が正しいか見てください

月次の推移

ダウンロード数4809
3402415849132026-03 · ダウンロード数 35062026-05 · ダウンロード数 37992026-06 · ダウンロード数 39432026-07 · ダウンロード数 42372026-08 · ダウンロード数 44052026-09 · ダウンロード数 480926-0326-09
スター数16
1415162026-03 · スター数 142026-05 · スター数 152026-06 · スター数 162026-07 · スター数 162026-08 · スター数 162026-09 · スター数 1626-0326-09

2026-09 から集計方法を変更し、同名スキルを作者ごとに分けて集計し、全スキルを対象にしました。破線は変更前の月で、変更後のデータとは直接比較せず、変更をまたぐ増減も計算していません。

月ダウンロード数前月比スター数
2026-094809—16
2026-084405+4.0%16
2026-074237+7.5%16
2026-063943+3.8%16
2026-053799—15
2026-033506—14

SKILL.md 原文

作者が公開した元のファイルをテキストのまま表示しています。AlphaMoat による編集や審査はしていません。リンクはクリックできません。コマンドは内容を確認してから実行してください。取得日 2026-10-23。

3.7 KB・ClawHub v1.0.0
---
name: swiftui-liquid-glass
description: Implement, review, or improve SwiftUI features using the iOS 26+ Liquid Glass API. Use when asked to adopt Liquid Glass in new SwiftUI UI, refactor an existing feature to Liquid Glass, or review Liquid Glass usage for correctness, performance, and design alignment.
---

# SwiftUI Liquid Glass

_Attribution: copied from @Dimillian’s `Dimillian/Skills` (2025-12-31)._

## Overview
すべて表示(全 93 行)
Use this skill to build or review SwiftUI features that fully align with the iOS 26+ Liquid Glass API. Prioritize native APIs (`glassEffect`, `GlassEffectContainer`, glass button styles) and Apple design guidance. Keep usage consistent, interactive where needed, and performance aware.

## Workflow Decision Tree
Choose the path that matches the request:

### 1) Review an existing feature
- Inspect where Liquid Glass should be used and where it should not.
- Verify correct modifier order, shape usage, and container placement.
- Check for iOS 26+ availability handling and sensible fallbacks.

### 2) Improve a feature using Liquid Glass
- Identify target components for glass treatment (surfaces, chips, buttons, cards).
- Refactor to use `GlassEffectContainer` where multiple glass elements appear.
- Introduce interactive glass only for tappable or focusable elements.

### 3) Implement a new feature using Liquid Glass
- Design the glass surfaces and interactions first (shape, prominence, grouping).
- Add glass modifiers after layout/appearance modifiers.
- Add morphing transitions only when the view hierarchy changes with animation.

## Core Guidelines
- Prefer native Liquid Glass APIs over custom blurs.
- Use `GlassEffectContainer` when multiple glass elements coexist.
- Apply `.glassEffect(...)` after layout and visual modifiers.
- Use `.interactive()` for elements that respond to touch/pointer.
- Keep shapes consistent across related elements for a cohesive look.
- Gate with `#available(iOS 26, *)` and provide a non-glass fallback.

## Review Checklist
- **Availability**: `#available(iOS 26, *)` present with fallback UI.
- **Composition**: Multiple glass views wrapped in `GlassEffectContainer`.
- **Modifier order**: `glassEffect` applied after layout/appearance modifiers.
- **Interactivity**: `interactive()` only where user interaction exists.
- **Transitions**: `glassEffectID` used with `@Namespace` for morphing.
- **Consistency**: Shapes, tinting, and spacing align across the feature.

## Implementation Checklist
- Define target elements and desired glass prominence.
- Wrap grouped glass elements in `GlassEffectContainer` and tune spacing.
- Use `.glassEffect(.regular.tint(...).interactive(), in: .rect(cornerRadius: ...))` as needed.
- Use `.buttonStyle(.glass)` / `.buttonStyle(.glassProminent)` for actions.
- Add morphing transitions with `glassEffectID` when hierarchy changes.
- Provide fallback materials and visuals for earlier iOS versions.

## Quick Snippets
Use these patterns directly and tailor shapes/tints/spacing.

```swift
if #available(iOS 26, *) {
    Text("Hello")
        .padding()
        .glassEffect(.regular.interactive(), in: .rect(cornerRadius: 16))
} else {
    Text("Hello")
        .padding()
        .background(.ultraThinMaterial, in: RoundedRectangle(cornerRadius: 16))
}
```

```swift
GlassEffectContainer(spacing: 24) {
    HStack(spacing: 24) {
        Image(systemName: "scribble.variable")
            .frame(width: 72, height: 72)
            .font(.system(size: 32))
            .glassEffect()
        Image(systemName: "eraser.fill")
            .frame(width: 72, height: 72)
            .font(.system(size: 32))
            .glassEffect()
    }
}
```

```swift
Button("Confirm") { }
    .buttonStyle(.glassProminent)
```

## Resources
- Reference guide: `references/liquid-glass.md`
- Prefer Apple docs for up-to-date API details.

開発の人気スキル

Peter Steinbergerのその他のスキル

データ月:2026-09 · ダウンロード数、スター数、インストール数は公開スキルレジストリ(ClawHub、SkillHub)から月単位で集計しています。詳しくはデータの方法論をご覧ください。