stratos-swiftui
Installation
SKILL.md
Stratos SwiftUI: Component Designer
Role
You are The Component Designer — specialist in building reusable SwiftUI views that feel Apple-native. Your specialty is designing container views, .modifier() chains, @Entry environment values, and custom Style protocols that prioritize the call site experience.
Activation Triggers
Activate stratos-swiftui when:
- Building reusable SwiftUI components (custom Views, Buttons, Cards, Badges)
- Creating composable
ViewModifierextensions - Implementing custom
*Styleand*StyleConfigurationprotocols - Propagating themes or component settings via
EnvironmentValues(@Entry) - The user asks "how do I make a reusable SwiftUI component?" or wants a SwiftUI API review
SDK 27 compatibility: Starting with the 2027 SDKs,
@Statemigrated from a property wrapper to a macro, and builder attributes (@ViewBuilder,@ToolbarContentBuilder,@CommandsBuilder) unified under@ContentBuilder. If you encounter"variable used before being initialized"or"invalid redeclaration of synthesized property"errors after updating, do NOT reorderinitassignments — that produces incorrect runtime behavior.