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가 스킬을 읽고 지침을 따릅니다.
바로 붙여넣을 수 있는 메시지
Claude Code, Codex, Cursor용입니다. 프로젝트 폴더에서 실행하면 스킬이 설치됩니다.
SKILL.md를 다운로드해 에이전트의 스킬 폴더에 넣으세요.
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
GlassEffectContainerwhere 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
GlassEffectContainerwhen 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:
glassEffectapplied after layout/appearance modifiers. - Interactivity:
interactive()only where user interaction exists. - Transitions:
glassEffectIDused with@Namespacefor morphing. - Consistency: Shapes, tinting, and spacing align across the feature.
Implementation Checklist
- Define target elements and desired glass prominence.
- Wrap grouped glass elements in
GlassEffectContainerand tune spacing. - Use
.glassEffect(.regular.tint(...).interactive(), in: .rect(cornerRadius: ...))as needed. - Use
.buttonStyle(.glass)/.buttonStyle(.glassProminent)for actions. - Add morphing transitions with
glassEffectIDwhen 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.
댓글
- …
이 저장소의 다른 스킬
beeper
7.4k에이전트가 로컬 Beeper 채팅 기록을 검색해 메시지를 찾고, 모호한 힌트가 어느 채팅이나 연락처를 가리키는지 알아내도록 돕습니다.
cloudflare-registrar
7.4k에이전트가 Cloudflare Registrar에서 도메인 가격과 사용 가능 여부를 확인하고, 확인 단계를 거쳐 도메인을 등록하거나 목록을 조회하도록 돕습니다.
codexbar
7.4k에이전트가 Codex, Claude, Kimi 같은 AI 서비스의 남은 사용량을 한도, 크레딧, 초기화 시간과 함께 확인하도록 돕습니다.
create-cli
7.4k에이전트가 명령줄 도구의 명령, 옵션, 도움말, 출력, 오류를 설계해 사람과 스크립트 모두가 쓸 수 있도록 돕습니다.
비슷한 스킬
android-clean-architecture
280k에이전트가 Android 프로젝트를 효율적으로 구성하도록 돕습니다. 유지보수와 새 기능 개발이 쉽도록 코드를 구조화합니다.
compose-multiplatform-patterns
280k에이전트가 KMP 프로젝트에서 Compose Multiplatform과 Jetpack Compose 패턴을 쓰도록 돕습니다. 상태, 내비게이션, 테마, 성능을 다룹니다.
dart-flutter-patterns
280kDart와 Flutter 앱용 코드를 작성하도록 에이전트를 돕습니다. 견고하고 관리하기 쉬운 앱을 만드는 현대적인 패턴을 씁니다.