swiftui-expert-skilllisted
Install: claude install-skill patrickserrano/lacquer
# SwiftUI Expert Skill
## Operating Rules
- Consult `references/latest-apis.md` at the start of every task to avoid deprecated APIs
- Only adopt Liquid Glass when explicitly requested by the user (use the `swiftui-liquid-glass` skill)
- Use `#available` gating with sensible fallbacks for version-specific APIs
## SwiftUI Code Workflow
### Review existing SwiftUI code
- Read the code under review and identify which topics apply
- Flag deprecated APIs (compare against `references/latest-apis.md`)
- Run the Topic Router below for each relevant topic
- Validate `#available` gating and fallback paths for iOS 26+ features
### Improve existing SwiftUI code
- Audit current implementation against the Topic Router topics
- Replace deprecated APIs with modern equivalents from `references/latest-apis.md`
- Refactor hot paths to reduce unnecessary state updates
- Extract complex view bodies into separate subviews
- Suggest image downsampling when `UIImage(data:)` is encountered (optional optimization, see `references/image-optimization.md`)
### Implement new SwiftUI feature
- Design data flow first: identify owned vs injected state
- Structure views for optimal diffing (extract subviews early)
- Apply correct animation patterns (implicit vs explicit, transitions)
- Use `Button` for all tappable elements; add accessibility grouping and labels
- Gate version-specific APIs with `#available` and provide fallbacks
## Instruments Trace Workflow
### Record a new Instruments trace
Trigger