mobile
Solid移动开发(iOS/Android/SwiftUI/Jetpack Compose/React Native/Flutter)。
AI & Automation 13 stars
1 forks Updated 5 days ago MIT
Install
Quality Score: 86/100
Stars 20%
Recency 20%
Frontmatter 20%
Documentation 15%
Issue Health 10%
License 10%
Description 5%
Skill Content
# 移动开发域 · Mobile Development
## 域概览
```
原生开发 跨平台开发
├── iOS (SwiftUI/UIKit) ├── React Native (JS/TS)
├── Android (Compose/Kotlin) └── Flutter (Dart)
└── 共通:MVVM / 网络层 / 持久化 / 测试
```
---
## iOS 开发
### SwiftUI 核心模式
- View 组件:`struct MyView: View { var body: some View { ... } }`
- State 管理:
- `@State` — 本地状态
- `@Binding` — 父子双向绑定
- `@StateObject` — 拥有 ObservableObject
- `@ObservedObject` — 引用 ObservableObject
- `@EnvironmentObject` / `@Environment` — 全局注入
- ObservableObject:`@Published` 属性自动触发 UI 更新
- Custom ViewModifier:`struct CardModifier: ViewModifier` + `extension View { func cardStyle() }`
- 生命周期:`.task { await ... }` / `.onAppear` / `.onDisappear`
### UIKit 集成
- UIViewControllerRepresentable:包装 UIViewController 到 SwiftUI
- UIViewRepresentable:包装 UIView 到 SwiftUI
- Coordinator 模式:处理 delegate 回调
- Auto Layout:`NSLayoutConstraint.activate([...])` + `translatesAutoresizingMaskIntoConstraints = false`
### Combine 响应式
- Publisher:`URLSession.shared.dataTaskPublisher` → `map` → `decode` → `eraseToAnyPublisher`
- 订阅:`.sink(receiveCompletion:receiveValue:)` + `.store(in: &cancellables)`
- 常用 Operators:`debounce` / `removeDuplicates` / `combineLatest` / `flatMap`
- Subject:`PassthroughSubject`(无初始值)/ `CurrentValueSubject`(有初始值)
### iOS 架构
MVVM(推荐):
- Model:`Codable` 数据结构
- Repository:`protocol` + `async throws` 方法
- ViewModel:`@MainActor class VM: ObservableObject` + `@Published` 属性
- View:`@StateObject private var viewModel = VM()`
VIPE...
Details
- Author
- wzyxdwll
- Repository
- wzyxdwll/ccgx-workflow
- Created
- 3 weeks ago
- Last Updated
- 5 days ago
- Language
- TypeScript
- License
- MIT
Similar Skills
Semantically similar based on skill content — not just same category
AI & Automation Featured
mobile
移动开发。iOS、Android、SwiftUI、Jetpack Compose、React Native、Flutter、跨平台。当用户提到移动开发、iOS、Android、跨平台时路由到此。
5,403 Updated 2 days ago
fengshao1227 AI & Automation Listed
native
Native app development strategies including iOS/macOS (Apple platforms), Tauri desktop apps. Use when developing native mobile or desktop applications.
42 Updated 1 months ago
xiaobei930 Code & Development Listed
ios-development
iOS開発のベストプラクティス、設計パターン、実装テクニック、よくあるトラブルと解決方法を包括的にカバー。MVVM、Clean Architecture、Combine、SwiftUI/UIKitの実践的なガイドを提供します。
5 Updated 2 days ago
Gaku52 AI & Automation Solid
swiftswiftui-development
Expert skill for native iOS development with Swift and SwiftUI
1,160 Updated today
a5c-ai AI & Automation Listed
swift-
专为 iOS/macOS 现代开发打造的代码分析规范。全面剖析 SwiftUI 响应式模式、ARC 强引用循环破除、以及 Swift 5.5+ 下基于 Actor 与 async/await 的全新并发架构。
45 Updated 6 days ago
microwind