From sundial-org-awesome-openclaw-skills-4
Provides best practices, workflows, and code examples for SwiftUI views, components, TabView architecture, NavigationStack, sheets, and app scaffolding. Use when creating or refactoring SwiftUI UIs.
How this skill is triggered — by the user, by Claude, or both
Slash command
/sundial-org-awesome-openclaw-skills-4:swiftui-ui-patternsThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Choose a track based on your goal:
references/app-wiring.mdreferences/components-index.mdreferences/controls.mdreferences/deeplinks.mdreferences/focus.mdreferences/form.mdreferences/grids.mdreferences/haptics.mdreferences/input-toolbar.mdreferences/lightweight-clients.mdreferences/list.mdreferences/loading-placeholders.mdreferences/macos-settings.mdreferences/matched-transitions.mdreferences/media.mdreferences/menu-bar.mdreferences/navigationstack.mdreferences/overlay.mdreferences/scrollview.mdreferences/searchable.mdChoose a track based on your goal:
rg "TabView\(" or similar, then read the closest SwiftUI view.references/components-index.md and follow its guidance.references/app-scaffolding-wiring.md to wire TabView + NavigationStack + sheets.AppTab and RouterPath based on the provided skeletons.@State, @Binding, @Observable, @Environment) and avoid unnecessary view models..task and explicit loading/error states..sheet(item:) over .sheet(isPresented:) when state represents a selected model. Avoid if let inside a sheet body. Sheets should own their actions and call dismiss() internally instead of forwarding onCancel/onConfirm closures.@Environment..task and explicit state enum if needed.Use references/components-index.md as the entry point. Each component reference should include:
@State private var selectedItem: Item?
.sheet(item: $selectedItem) { item in
EditItemSheet(item: item)
}
struct EditItemSheet: View {
@Environment(\.dismiss) private var dismiss
@Environment(Store.self) private var store
let item: Item
@State private var isSaving = false
var body: some View {
VStack {
Button(isSaving ? "Saving…" : "Save") {
Task { await save() }
}
}
}
private func save() async {
isSaving = true
await store.save(item)
dismiss()
}
}
references/<component>.md.references/components-index.md with the new entry.npx claudepluginhub joshuarweaver/cascade-ai-ml-agents-misc-2 --plugin sundial-org-awesome-openclaw-skills-4Provides best practices and examples for SwiftUI views, components, navigation hierarchies, custom modifiers, responsive layouts with stacks/grids, and state management (@State/@Binding). Use for creating/refactoring iOS UI.
Applies SwiftUI UI patterns for navigation, sheets, async state, and reusable screens. Guides refactoring or scaffolding with modern SwiftUI state and composition.
Builds or refactors iOS SwiftUI views with guidance on navigation, state ownership, environment injection, async loading, and performance-aware patterns.