mobile

Solid

移动开发(iOS/Android/SwiftUI/Jetpack Compose/React Native/Flutter)。

AI & Automation 13 stars 1 forks Updated 5 days ago MIT

Install

View on GitHub

Quality Score: 86/100

Stars 20%
38
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
80
License 10%
100
Description 5%
100

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