jpskill.com
🛠️ 開発・MCP コミュニティ 🔴 エンジニア向け 👤 エンジニア・AI開発者

🛠️ Swiftui Liquid Glass

swiftui-liquid-glass

iPhoneアプリなどで、液体のようなガラス表現(リキッド

⏱ ライブラリ調査+組込 半日 → 1時間

📺 まず動画で見る(YouTube)

▶ 【衝撃】最強のAIエージェント「Claude Code」の最新機能・使い方・プログラミングをAIで効率化する超実践術を解説! ↗

※ jpskill.com 編集部が参考用に選んだ動画です。動画の内容と Skill の挙動は厳密には一致しないことがあります。

📜 元の英語説明(参考)

Implement or review SwiftUI Liquid Glass APIs with correct fallbacks and modifier order.

🇯🇵 日本人クリエイター向け解説

一言でいうと

iPhoneアプリなどで、液体のようなガラス表現(リキッド

※ jpskill.com 編集部が日本のビジネス現場向けに補足した解説です。Skill本体の挙動とは独立した参考情報です。

⚡ おすすめ: コマンド1行でインストール(60秒)

下記のコマンドをコピーしてターミナル(Mac/Linux)または PowerShell(Windows)に貼り付けてください。 ダウンロード → 解凍 → 配置まで全自動。

🍎 Mac / 🐧 Linux
mkdir -p ~/.claude/skills && cd ~/.claude/skills && curl -L -o swiftui-liquid-glass.zip https://jpskill.com/download/3559.zip && unzip -o swiftui-liquid-glass.zip && rm swiftui-liquid-glass.zip
🪟 Windows (PowerShell)
$d = "$env:USERPROFILE\.claude\skills"; ni -Force -ItemType Directory $d | Out-Null; iwr https://jpskill.com/download/3559.zip -OutFile "$d\swiftui-liquid-glass.zip"; Expand-Archive "$d\swiftui-liquid-glass.zip" -DestinationPath $d -Force; ri "$d\swiftui-liquid-glass.zip"

完了後、Claude Code を再起動 → 普通に「動画プロンプト作って」のように話しかけるだけで自動発動します。

💾 手動でダウンロードしたい(コマンドが難しい人向け)
  1. 1. 下の青いボタンを押して swiftui-liquid-glass.zip をダウンロード
  2. 2. ZIPファイルをダブルクリックで解凍 → swiftui-liquid-glass フォルダができる
  3. 3. そのフォルダを C:\Users\あなたの名前\.claude\skills\(Win)または ~/.claude/skills/(Mac)へ移動
  4. 4. Claude Code を再起動

⚠️ ダウンロード・利用は自己責任でお願いします。当サイトは内容・動作・安全性について責任を負いません。

🎯 このSkillでできること

下記の説明文を読むと、このSkillがあなたに何をしてくれるかが分かります。Claudeにこの分野の依頼をすると、自動で発動します。

📦 インストール方法 (3ステップ)

  1. 1. 上の「ダウンロード」ボタンを押して .skill ファイルを取得
  2. 2. ファイル名の拡張子を .skill から .zip に変えて展開(macは自動展開可)
  3. 3. 展開してできたフォルダを、ホームフォルダの .claude/skills/ に置く
    • · macOS / Linux: ~/.claude/skills/
    • · Windows: %USERPROFILE%\.claude\skills\

Claude Code を再起動すれば完了。「このSkillを使って…」と話しかけなくても、関連する依頼で自動的に呼び出されます。

詳しい使い方ガイドを見る →
最終更新
2026-05-17
取得日時
2026-05-17
同梱ファイル
2

💬 こう話しかけるだけ — サンプルプロンプト

  • Swiftui Liquid Glass を使って、最小構成のサンプルコードを示して
  • Swiftui Liquid Glass の主な使い方と注意点を教えて
  • Swiftui Liquid Glass を既存プロジェクトに組み込む方法を教えて

これをClaude Code に貼るだけで、このSkillが自動発動します。

📖 Skill本文(日本語訳)

※ 原文(英語/中国語)を Gemini で日本語化したものです。Claude 自身は原文を読みます。誤訳がある場合は原文をご確認ください。

[Skill 名] swiftui-liquid-glass

SwiftUI Liquid Glass

概要

このスキルは、iOS 26+ の Liquid Glass API に完全に準拠した SwiftUI 機能を構築またはレビューするために使用します。ネイティブ API(glassEffectGlassEffectContainer、glass button styles)と Apple のデザインガイドラインを優先してください。使用法は一貫させ、必要に応じてインタラクティブにし、パフォーマンスを意識してください。

使用する場面

  • ユーザーが SwiftUI UI で Liquid Glass を採用またはレビューしたい場合。
  • Liquid Glass の正しい API 使用法、フォールバック処理、または修飾子の順序が必要な場合。

ワークフロー決定木

リクエストに合致するパスを選択してください。

1) 既存の機能をレビューする

  • Liquid Glass を使用すべき箇所とそうでない箇所を検査します。
  • 正しい修飾子の順序、シェイプの使用法、コンテナの配置を確認します。
  • iOS 26+ の利用可能性の処理と、適切なフォールバックを確認します。

2) Liquid Glass を使用して機能を改善する

  • ガラス処理の対象となるコンポーネント(サーフェス、チップ、ボタン、カード)を特定します。
  • 複数のガラス要素が出現する場合は、GlassEffectContainer を使用するようにリファクタリングします。
  • タップ可能またはフォーカス可能な要素にのみインタラクティブなガラスを導入します。

3) Liquid Glass を使用して新機能を実装する

  • まずガラスのサーフェスとインタラクション(シェイプ、プロミネンス、グループ化)を設計します。
  • レイアウト/外観修飾子の後にガラス修飾子を追加します。
  • ビュー階層がアニメーションで変更される場合にのみ、モーフィングトランジションを追加します。

コアガイドライン

  • カスタムのぼかしよりもネイティブの Liquid Glass API を優先します。
  • 複数のガラス要素が共存する場合は GlassEffectContainer を使用します。
  • レイアウトおよび視覚修飾子の後に .glassEffect(...) を適用します。
  • タッチ/ポインタに応答する要素には .interactive() を使用します。
  • 関連する要素間でシェイプを一貫させ、まとまりのある外観を保ちます。
  • #available(iOS 26, *) でゲートし、非ガラスのフォールバックを提供します。

レビューチェックリスト

  • 利用可能性: #available(iOS 26, *) がフォールバック UI とともに存在するか。
  • 構成: 複数のガラスビューが GlassEffectContainer でラップされているか。
  • 修飾子の順序: glassEffect がレイアウト/外観修飾子の後に適用されているか。
  • インタラクティブ性: interactive() がユーザーインタラクションが存在する箇所にのみ使用されているか。
  • トランジション: モーフィングのために @Namespace とともに glassEffectID が使用されているか。
  • 一貫性: シェイプ、ティント、スペーシングが機能全体で整合しているか。

実装チェックリスト

  • 対象要素と望ましいガラスのプロミネンスを定義します。
  • グループ化されたガラス要素を GlassEffectContainer でラップし、スペーシングを調整します。
  • 必要に応じて .glassEffect(.regular.tint(...).interactive(), in: .rect(cornerRadius: ...)) を使用します。
  • アクションには .buttonStyle(.glass) / .buttonStyle(.glassProminent) を使用します。
  • 階層が変更されるときに glassEffectID を使用してモーフィングトランジションを追加します。
  • 以前の iOS バージョン向けにフォールバックのマテリアルとビジュアルを提供します。

クイックスニペット

これらのパターンを直接使用し、シェイプ/ティント/スペーシングを調整してください。

if #available(iOS 26, *) {
    Text("Hello")
        .padding()
        .glassEffect(.regular.interactive(), in: .rect(cornerRadius: 16))
} else {
    Text("Hello")
        .padding()
        .background(.ultraThinMaterial, in: RoundedRectangle(cornerRadius: 16))
}
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()
    }
}
Button("Confirm") { }
    .buttonStyle(.glassProminent)

リソース

  • リファレンスガイド: references/liquid-glass.md
  • 最新の API 詳細については Apple のドキュメントを参照してください。

制限事項

  • このスキルは、タスクが上記で説明されている範囲と明確に一致する場合にのみ使用してください。
  • 出力を、環境固有の検証、テスト、または専門家によるレビューの代わりとして扱わないでください。
  • 必要な入力、権限、安全境界、または成功基準が不足している場合は、停止して明確化を求めてください。
📜 原文 SKILL.md(Claudeが読む英語/中国語)を展開

SwiftUI Liquid Glass

Overview

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.

When to Use

  • When the user wants to adopt or review Liquid Glass in SwiftUI UI.
  • When you need correct API usage, fallback handling, or modifier ordering for Liquid Glass.

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.

if #available(iOS 26, *) {
    Text("Hello")
        .padding()
        .glassEffect(.regular.interactive(), in: .rect(cornerRadius: 16))
} else {
    Text("Hello")
        .padding()
        .background(.ultraThinMaterial, in: RoundedRectangle(cornerRadius: 16))
}
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()
    }
}
Button("Confirm") { }
    .buttonStyle(.glassProminent)

Resources

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

Limitations

  • Use this skill only when the task clearly matches the scope described above.
  • Do not treat the output as a substitute for environment-specific validation, testing, or expert review.
  • Stop and ask for clarification if required inputs, permissions, safety boundaries, or success criteria are missing.

同梱ファイル

※ ZIPに含まれるファイル一覧。`SKILL.md` 本体に加え、参考資料・サンプル・スクリプトが入っている場合があります。