Hi, I’m Levi, an iOS and TypeScript full-stack developer.你好,我是雷子康(Levi),iOS 与 TypeScript 全栈开发者。

I write about what I learn while building. Full showcase & 6 Mac apps at Portfolio ↗.记录真实开发、排障与独立构建中的所得。完整作品集与 6 款 Mac App 见 Portfolio ↗。

Engineering

Three Levels of Modularizing an Old UIKit Project

Modularizing an iOS project is more than moving to SPM. Nested UI components, view models with controlled doors, and packages that own their dependencies, with what worked and what I left unfinished at each level.

4 min

Adding a Feature to an Old Codebase Without Restructuring It

An old Objective-C and Swift project has several kinds of WKWebView screen and no shared WebView base class. Here is how a protocol and extension added a PDF download button with one new line per screen, and where that approach falls short.

5 min

AI and opinions

I think we are already in the early AGI era

Using Claude Fable 5 convinced me that AI has crossed a capability threshold. Falling costs, and AI helping develop its own infrastructure, will shape how widely those capabilities spread.

3 min

Three problems I've run into with Codex

Codex has plenty of features and strong Computer Use. But it agrees with whatever the user asks, rarely checks its own work along the way, and hides what it's actually doing.

2 min

Writing the code is the easy part

In September I built two small Mac apps, and only then realized that turning an idea into an app is no longer hard. The hard part is getting people to know it exists and want to try it. For an indie developer, marketing is much harder than coding.

2 min

Liquid Glass or liquid plastic?

iOS 27 drops the tilt-responsive lighting that made Liquid Glass feel like glass. Buttons are easier to see, but the result looks more like plastic. Plus some thoughts on the faster startup and a Mac black screen.

2 min

My Feelings

A Quick Thought on Resume Labels

Degrees, big-tech internships, and brand-name logos act like factory inspection stamps in an impatient hiring market.

2 min

工程实践

老 UIKit 项目模块化的三个层次

iOS 模块化不只是迁 SPM。这篇讲三个层次:可嵌套的 UI 组件、出入口受控的 view model、自己持有依赖的 package,以及每一层做到哪、哪里没做好。

4 分钟

服务连不上 Redis:VNet 集成改变了出站 IP

测试环境的推送服务连不上 Azure Redis。开启 VNet 集成和 route all 后,访问 Redis 的连接从 NAT gateway 的 IP 出去,而 Redis 防火墙只放行了 App Service 的默认出站 IP。

4 分钟

把老项目从 CocoaPods 迁到 SPM,然后又迁了回去

我有迁移计划,却还是提了一个改动 972 个文件的 commit,资深同事要求回退。这篇讲迁过去和迁回来分别做了什么,以及“迁移计划”和“落地计划”的区别。

5 分钟

用 JMeter 压测 API:大部分工作其实是读懂错误

一个 JMeter 测试计划、三套配置、59 组结果。这些数字到底说明了什么:包括最后一轮 703 个错误里一个线程贡献了 209 个,以及压测找出的一个真实数据库 bug。

6 分钟

用 AI 写 Apple App 时,把 Xcode Preview 当成 UI 单元测试来用

用 Antigravity、Claude Code 或 Codex 开发 iOS/macOS App 时,与其每次改完 UI 都 Cmd+R 重跑模拟器,不如让 Agent 通过 Xcode MCP Bridge 直接写多个 #Preview,在 Canvas 里交互对比,再结合 API Mock 在预览里直接验证不同 JSON 响应。

5 分钟

AI 与观点

Codex 很强,但别把没想清楚的事交给它

GPT-6 执行边界清楚的任务又快又好,但一个没想清楚的大任务,它跑了四个小时,最后交出一团糟。问题出在它不会追问,也不会发现自己跑偏。

2 分钟

我用 Codex 遇到的三个问题

Codex 功能很多,Computer Use 也很强。但它太容易认同用户的需求,做事过程中很少停下来自查,界面还把正在做的事藏了起来。

2 分钟

写代码是最简单的一步

9 月我做了两款 Mac 小工具,做完才发现,把想法做出来已经不难,难的是让别人知道它、愿意试一试。对独立开发者来说,营销比写代码难多了。

2 分钟

liquid glass 还是 liquid plastic?

iOS 27 去掉了随手机倾斜变化的玻璃光影,按钮是更清楚了,但看起来更像塑料。顺便说说变快的启动,和今天遇到的 Mac 黑屏。

2 分钟

My Feelings