Agent skill · software engineering · thebushidocollective

ios-uikit-architecture

Use when building iOS apps with UIKit, implementing MVVM/MVC/Coordinator patterns, or integrating UIKit with SwiftUI.

Why this skill is useful

Provides specific architectural patterns and best practices for UIKit development that the AI wouldn't reliably generate on its own.

What it needs

About 3k tokens when loaded. Last updated 2026-07-19. 187 stars on the source repository.

What this skill does

iOS - UIKit Architecture Architectural patterns and best practices for UIKit-based iOS applications. Key Concepts MVVM Architecture The Model-View-ViewModel pattern separates concerns: Model: Data and business logic View: UIViewController and UIView subclasses ViewModel: Presentation logic, transforms model data for display Coordinator Pattern Coordinators handle navigation flow, removing navigation logic from view controllers: Dependency Injection Inject dependencies through initializers for testability: Best Practices Programmatic UI with Auto Layout Modern Collection Views with Diffable Data Source UIKit and SwiftUI Integration Hosting SwiftUI in UIKit: Wrapping UIKit in SwiftUI: Common Patterns View Controller Lifecycle Management Memory Management with Closures Anti-Patterns Massive View Controllers Bad: Putting everything in one view controller. Good: Extract into separate types: ViewModels for presentation logic Coordinators for navigation Custom views for UI components Services for network/data operations Storyboard Segue Spaghetti Bad: Complex storyboard with many segues. Good: Use coordinators with programmatic navigation. Force Casting Cells Bad: Good: Related Skills ios-swiftui-patterns: Modern declarative UI ios-swift-concurrency: Async data loading

How to use it

Reference it in AdaL, Claude Code, Cursor or any coding agent — nothing to install:

@skills thebushidocollective/uikit-architecture

View the source on GitHub

Browse the @skills marketplace