본문으로 건너뛰기
Skillpedia
모바일 앱7.4k · #13249

swiftui-liquid-glass

하는 일

이 스킬은 기능을 만들거나 개선하거나 검토할 때 SwiftUI에서 Apple의 글라스 디자인 효과를 쓰는 방법을 안내합니다. 새로운 Liquid Glass 스타일을 도입하는 iOS 개발자를 위한 스킬입니다.

사용하는 경우

  • ✓SwiftUI 화면에 Liquid Glass 스타일을 적용하고 싶을 때.
  • ✓기존 기능이 글라스 효과를 올바르게 쓰는지 검토받고 싶을 때.
  • ✓글라스 효과와 함께 이전 iOS 버전도 처리해야 할 때.

스킬 링크

https://github.com/steipete/agent-scripts/blob/main/skills/swiftui-liquid-glass/SKILL.md

복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.

사용 방법

가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.

바로 붙여넣을 수 있는 메시지

Use this skill to help me: https://github.com/steipete/agent-scripts/blob/main/skills/swiftui-liquid-glass/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
AI가 이런 스킬을 알아서 찾아 쓰길 원하시나요?무료 Skillpedia MCP를 설치하세요. 한 줄이면 작업마다 스킬 15,000+개 중에서 검색합니다.1분 만에 설치 →

AI에게 요청하는 예시

“이 SwiftUI 도구 막대를 Liquid Glass 스타일로 바꿔 주시고, 이전 iOS 버전을 위한 대체 표시도 넣어 주세요.”

매주 새 스킬 5개. 읽는 데 1분.

작동 방식

에이전트는 네이티브 글라스 효과와 컨테이너를 사용하고, 유용한 곳에서는 탭할 수 있는 요소에 효과를 더합니다. iOS 26 이상에서 사용 가능한지 확인하고, 적절한 대체 방법을 둡니다.

기술 내용 (원본 SKILL.md)

작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.

SwiftUI Liquid Glass

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

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.

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.
자주 묻는 질문

대신 커스텀 블러를 써야 하나요?

아닙니다. 스킬은 커스텀 블러보다 네이티브 Liquid Glass API를 우선하라고 설명합니다.

어떤 기기를 대상으로 하나요?

iOS 26 이상을 대상으로 하며, 이전 버전을 위한 대체 처리도 포함합니다.

글라스 효과는 어디에 적용하나요?

레이아웃과 외형 모디파이어 뒤에 적용하고, 여러 개가 나타날 때는 하나의 컨테이너로 묶습니다.

상세 정보

작성자의 원본 설명

SwiftUI Liquid Glass: implement, adopt, refactor, review correctness/perf/design.

repo: steipete/agent-scripts

인기도

GitHub 스타
7.4k
순위
#13249
라이선스
MIT
업데이트
2026. 10. 30.

이 스킬이 유용한가요?

0

로그인 투표하려면 로그인하세요.

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬