iOS · Swift · App Architecture

写能跑很久的 iOS 代码。

这里记录 Swift、UIKit、性能优化、组件设计和移动端工程实践。关注真实项目里的取舍:稳定、可读、可测试,也要足够好用。

A quiet desk with app interface sketches and Swift notes, rendered as a warm editorial photograph
Notes on interfaces, state, and the code between them.
Focus

UIKit 架构

视图层组织、状态流转、列表性能、组件边界,以及大型页面如何保持清晰。

Practice

Swift 实践

类型设计、并发模型、错误处理、数据解析和那些能降低维护成本的小习惯。

Taste

性能与体验

启动、滚动、内存、动画、网络等待和用户真正能感知到的细节。

Writing

最新文章

Swift Concurrency 在业务层的边界

把 async/await 用在网络、缓存和 UI 更新之间时,最重要的是明确取消语义、主线程边界和错误传播路径。

SwiftConcurrencyArchitecture

UICollectionView 列表页的稳定结构

复杂列表不要把所有逻辑塞进 cell。section model、diffable snapshot 和独立事件处理能让页面长期可维护。

UIKitCollectionView

Projects

项目记录

UIKit Component Lab

沉淀可复用的列表、弹层、输入控件和状态视图,减少页面之间的重复实现。

UIKit · Auto Layout · Components

App Performance Notes

记录启动耗时、滚动掉帧、内存上涨和网络等待的排查方法。

Instruments · MetricKit · Signpost

Swift API Patterns

整理请求封装、模型解析、错误映射和异步状态管理的项目写法。

Swift · Codable · async/await

About

关于 Cushiro

我关注长期运行的移动端代码:页面要快,状态要清楚,接口变化不能轻易拖垮 UI。这个博客会持续沉淀 iOS 工程里的架构、性能和体验细节。

Stack
Swift, UIKit, Combine, async/await, Instruments
Principle
Make state explicit, keep UI honest.
Updated
2026-06-07