Published onMay 8, 2026同一份 JS,两种 UX:跨平台抽象为什么不能假设呈现形态是常量React-NativeExpoSwiftUIiPad机制分析@expo/ui 的 BottomSheet 桥接到 SwiftUI 的 .sheet——同一份代码在 iPhone 是底部抽屉、在 iPad 是居中 form-sheet,presentationDetents 被忽略。这揭示了跨平台抽象的一条隐含前提。
Published onApril 29, 2026命中测试的几何前提:SwiftUI 容器为什么需要 contentShape 才能整体可点React-NativeExpoSwiftUI手势机制分析SwiftUI 只对可见 leaf 子视图做命中测试——这条几何前提如何让"挂在容器上的 onTapGesture"只有点到子视图才生效,以及为什么 modifier 顺序不能反。
Published onDecember 17, 2025CCBuddy - 构建原生 macOS 菜单栏应用监控 Claude Code 使用量SwiftSwiftUImacOSClaude-Code菜单栏应用Token监控深入探讨 CCBuddy 的开发过程,这是一款原生 macOS 菜单栏应用,可实时监控 Claude Code 的 token 使用量和成本。使用 Swift、SwiftUI 和 AppKit 构建,具有玻璃拟态 UI 和全面的成本追踪功能。