skills/swift-ui/SKILL.md
SwiftUI implementation patterns for building polished iOS/macOS apps. Use when building views, managing state, creating layouts, implementing animations, or structuring app architecture in SwiftUI.
npx skillsauth add mpazaryna/agentic-factory swift-uiInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
SwiftUI implementation patterns for building distinctive iOS and macOS interfaces.
This skill covers SwiftUI implementation—the views, modifiers, state management, and patterns needed to build polished native apps. For design theory (typography, color, hierarchy), see design-principles. For App Store submission, see design-review.
Based on what you're building, I'll reference the appropriate implementation guide:
When: Building views, applying modifiers, structuring components
Reference: references/views.md
When: Managing data flow, handling state
Reference: references/state.md
When: Creating layouts, grids, responsive design
Reference: references/layout.md
When: Adding motion, transitions, gestures
Reference: references/animation.md
When: VoiceOver, Dynamic Type, accessibility
Reference: references/accessibility.md
When: App structure, data flow patterns, questioning if you need ViewModels
Reference: references/architecture.md
.task(id:) and .onChange() as mini reducersWhen: Storing data locally, Core Data replacement, iOS 17+
Reference: references/swiftdata.md
// MARK: - View Composition
struct ContentView: View {
var body: some View {
NavigationStack {
List(items) { item in
ItemRow(item: item)
}
.navigationTitle("Items")
}
}
}
// MARK: - State Management (No ViewModel needed)
struct ItemDetailView: View {
@Environment(APIClient.self) private var client
@Environment(\.dismiss) private var dismiss
@State private var item: Item?
var body: some View {
Form {
// content
}
.task { await loadItem() }
}
}
// MARK: - Animation
Button("Animate") {
withAnimation(.spring(response: 0.3, dampingFraction: 0.6)) {
isExpanded.toggle()
}
}
| Element | iOS Standard | |---------|-------------| | Touch target | 44pt minimum | | Navigation bar | 44pt height | | Tab bar | 49pt height | | Toolbar | 44pt height | | Corner radius | 10-20pt for cards | | Standard margin | 16pt |
// Use semantic colors
Color.primary // Adapts to dark mode
Color.secondary
Color.accentColor
Color(uiColor: .systemBackground)
Color(uiColor: .secondarySystemBackground)
development
Comprehensive Cloudflare platform skill covering Workers, Pages, storage (KV, D1, R2), AI (Workers AI, Vectorize, Agents SDK), feature flags (Flagship), networking (Tunnel, Spectrum), security (WAF, DDoS), and infrastructure-as-code (Terraform, Pulumi). Use for any Cloudflare development task. Biases towards retrieval from Cloudflare docs over pre-trained knowledge.
tools
Send and receive transactional emails with Cloudflare Email Service (Email Sending + Email Routing). Use when building email sending (Workers binding or REST API), email routing, Agents SDK email handling, or integrating email into any app — Workers, Node.js, Python, Go, etc. Also use for email deliverability, SPF/DKIM/DMARC, wrangler email setup, MCP email tools, or when a coding agent needs to send emails. Even for simple requests like "add email to my Worker" — this skill has critical config details.
tools
Build AI agents on Cloudflare Workers using the Agents SDK. Load when creating stateful agents, durable workflows, real-time WebSocket apps, scheduled tasks, MCP servers, chat applications, voice agents, or browser automation. Covers Agent class, state management, callable RPC, Workflows, durable execution, queues, retries, observability, and React hooks. Biases towards retrieval from Cloudflare docs over pre-trained knowledge.
tools
Planning conductor — runs the full PRD → Spec → Gherkin loop in a single interactive session with human approval gates.