swiftui-patterns
Modern SwiftUI patterns for declarative, performant UIs with @Observable state management and type-safe navigation.
- Covers property wrapper selection (
@State,@Observable,@Binding,@Environment), view model architecture, and environment injection for dependency management - Provides view composition strategies, subview extraction, and
ViewModifierpatterns to minimize re-renders and optimize rendering performance - Includes type-safe
NavigationStackrouting withNavigationPathandDestinationenums for programmatic navigation - Details performance optimization techniques: lazy containers for large collections, stable identifiers, avoiding expensive work in
body, andEquatableconformance for complex views - Lists anti-patterns to avoid, including deprecated
ObservableObject/@StateObjectin favor of@Observable, and improper async handling
SwiftUI Patterns
Modern SwiftUI patterns for building declarative, performant user interfaces on Apple platforms. Covers the Observation framework, view composition, type-safe navigation, and performance optimization.
When to Activate
- Building SwiftUI views and managing state (
@State,@Observable,@Binding) - Designing navigation flows with
NavigationStack - Structuring view models and data flow
- Optimizing rendering performance for lists and complex layouts
- Working with environment values and dependency injection in SwiftUI
State Management
Property Wrapper Selection
Choose the simplest wrapper that fits:
| Wrapper | Use Case |
More from affaan-m/everything-claude-code
security-review
Use this skill when adding authentication, handling user input, working with secrets, creating API endpoints, or implementing payment/sensitive features. Provides comprehensive security checklist and patterns.
7.9Kgolang-patterns
Idiomatic Go patterns, best practices, and conventions for building robust, efficient, and maintainable Go applications.
7.4Kcoding-standards
Baseline cross-project coding conventions for naming, readability, immutability, and code-quality review. Use detailed frontend or backend skills for framework-specific patterns.
6.7Kfrontend-patterns
Frontend development patterns for React, Next.js, state management, performance optimization, and UI best practices.
6.6Kbackend-patterns
Backend architecture patterns, API design, database optimization, and server-side best practices for Node.js, Express, and Next.js API routes.
6.6Kgolang-testing
Go testing patterns including table-driven tests, subtests, benchmarks, fuzzing, and test coverage. Follows TDD methodology with idiomatic Go practices.
6.1K