uikit
Installation
SKILL.md
UIKit Guide
Applies to: UIKit (iOS 12+), Swift 5.0+, Imperative UI, iOS/tvOS/Mac Catalyst
Core Principles
- MVVM + Coordinator: Separate view logic (VC), presentation (ViewModel), and navigation (Coordinator)
- Programmatic UI: Build views in code with Auto Layout; avoid storyboards for team projects
- Thin View Controllers: View controllers configure views and bind to view models; no business logic
- Protocol-Oriented Delegation: Use delegate protocols for callbacks; always declare delegates
weak - Memory Safety: Use
[weak self]in closures, cancel tasks indeinit, break retain cycles