了解如何开发优秀的 iOS 应用
使用 SwiftUI、SwiftData 和 Xcode 工具,从设计、开发到优化,构建优秀的 iOS 应用。

💡
这篇索引文章正在准备中。
设计应用
需求分析、数据建模、UI 设计、架构设计
- 梳理你的 App 数据流
- 使用 Figma 进行 App 原型设计
- 设计你的 App 架构
- 设计 SwiftData 数据模型
构建应用界面
持久化数据存储
SwiftData
UserDefault
优化 App 性能表现
流畅的使用体验,是优秀 App 必不可少的一部分。
- 使用 Swift 异步优化 App 性能表现
- 使用 Swift 并发优化 App 性能表现
- 使用预加载数据,优化 App 性能表现。
- 使用 Time Profiler 工具定位 App 性能问题
上架 App Store
- 为 App 申请 ICP 备案号
- 为 App 创建吸引人的预览截图
- 添加隐私政策和服务条款声明
- 添加功能请求和意见反馈入口
- 确保 App 提供注销账号功能。
示例代码
SwiftData
Backyard Birds: Building an app with SwiftData and widgets | Apple Developer Documentation
Create an app with persistent data, interactive widgets, and an all new in-app purchase experience.

Backyard Birds 项目,很棒的示例代码
Maintaining a local copy of server data | Apple Developer Documentation
Create and update a persistent store to cache read-only network data.

Data Cache 项目,使用了 SwiftData + 数据驱动变成 + 少量 ViewModel 的混合架构
Create, update, and delete data | Apple Developer Documentation
Extend the Friends’ Favorite Movies project from to let people create, edit, and delete friends and movies.

Observation
Managing model data in your app | Apple Developer Documentation
Create connections between your app’s data model and views.
