Use this skill to build, review, or improve UIKit features with correct lifecycle management, performant Auto Layout, modern collection view APIs, and safe navigation patterns. Prioritize native APIs, Apple's documented best practices, and performance-conscious patterns. This skill focuses on facts and best practices without enforcing specific architectural patterns (no MVVM/VIPER/Coordinator mandates).
View Controller Lifecycle Method Selection | Method | Use For |
| viewDidLoad | One-time setup: subviews, constraints, delegates | | viewIsAppearing | Geometry-dependent work, trait-based layout, scroll-to-item | | viewWillAppear | Transition coordinator animations only | | viewDidLayoutSubviews | Lightweight layer frame adjustments (fires multiple times) |
ビュー コントローラーのライフサイクル、自動レイアウト、コレクション ビュー、ナビゲーション、アニメーション、メモリ管理、最新の iOS 18 ~ 26 API のベスト プラクティスに従って、UIKit コードを作成、レビュー、または改善します。新しい UIKit 機能の構築、既存のビューまたはビュー コントローラーのリファクタリング、コード品質のレビュー、最新の UIKit パターン (差分可能データ ソース、構成レイアウト、セル構成) の採用、または UIKit と SwiftUI のブリッジを行うときに使用します。 SwiftUI のみのコードはカバーされません。 ソース: ivan-magda/uikit-expert-skill。