Write, review, or improve SwiftUI code following best practices for state management, view composition, performance, macOS-specific APIs, and iOS 26+ Liquid Glass adoption. Use when building new SwiftUI features, refactoring existing views, reviewing code quality, or adopting modern SwiftUI patterns. Also triggers whenever an Xcode Instruments `.trace` file is referenced (to analyse it) or the user asks to **record** a new trace — attach to a running app, launch one fresh, or capture a manually-stopped session with the bundled `record_trace.py`. A target SwiftUI source file is optional; if provided it grounds recommendations in specific lines, but a trace alone is enough to diagnose hangs, hitches, CPU hotspots, and high-severity SwiftUI updates.
95
92%
Does it follow best practices?
Impact
100%
1.16xAverage score across 3 eval scenarios
Passed
No known issues
Deprecated API replacement and state modernization
Observable macro
100%
100%
MainActor annotation
0%
100%
@State for owned model
100%
100%
@Bindable for injected observable
100%
100%
Passed value not @State
100%
100%
NavigationStack
100%
100%
navigationTitle modifier
100%
100%
foregroundStyle modifier
100%
100%
onChange without perform
100%
100%
onSubmit instead of onCommit
100%
100%
sensoryFeedback haptics
100%
100%
@Entry macro for environment
100%
100%
Performance patterns for large lists and animations
Lazy scroll container
100%
100%
Stable ForEach identity
100%
100%
No AnyView in rows
100%
100%
No inline filtering in ForEach
100%
100%
No heavy body computation
100%
100%
Animation with value param
100%
100%
Extracted row subview
100%
100%
@State private
100%
100%
@Observable model
0%
100%
Passed values not @State
100%
100%
foregroundStyle used
100%
100%
Liquid Glass UI with fallbacks and accessibility
GlassEffectContainer grouping
0%
100%
glassEffect after padding
100%
100%
interactive() on buttons only
50%
100%
#available iOS 26 guard
100%
100%
Material fallback
100%
100%
Button not onTapGesture
100%
100%
accessibilityLabel on icon buttons
100%
100%
Decorative images hidden
100%
100%
@ScaledMetric for sizes
88%
100%
Container spacing matches layout
0%
100%
@State private
100%
100%
a5f130a
Table of Contents
If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.