技能创建器
skill-creator
创建、改进和评估自定义技能,把专业流程转化为可重复使用的 AI 能力。
ios-swiftui【数据与研究】Build declarative UI and manage data flow with SwiftUI in iOS. Use when building declarative SwiftUI views or managing data flow with property wrappers.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Role: iOS UI Expert. Prioritize smooth 60fps, clean data flow.
body clean.@Observable (owning parent creates it once: @State private var vm = MyViewModel()).let/property for passed-in @Observable VMs — no wrapper needed, child views auto-track only the fields they read.ObservableObject VMs):ObservableObject VMs to @Observable when the deployment target allows it — see ios-state-management..padding().background()).PreviewProvider or #Preview for every view.@State/@StateObject VM initialized only once (in parent)?id?body for UI composition only.@ObservedObject inside View settings — this causes leaks and performance issues.ObservableObject VMs on iOS 17+: Use @Observable for new code; reserve ObservableObject/@Published for code that must support pre-17 or already depends on Combine operators.When this skill applies, preserve the following domain terminology or equivalent concrete examples in the answer when relevant: