fatbobman (东坡肘子)'s banner
fatbobman (东坡肘子)'s profile picture

fatbobman (东坡肘子)

@fatbobman • 8,850 subscribers

Swift & SwiftUI enthusiast | Tech blogger 📧 Newsletter: https://t.co/AX9xEwys1k

Shorts

随着 Xcode 开放 MCP Preview 渲染,让 AI 可以更快速参与 SwiftUI 设计。 但在自动化流水线里,视图脏缓存和设备对齐是个大麻烦。本文分享生产级避坑指南:为什么改了代码返回的还是旧截图?如何用 SourceFingerprint 确保 100% 一致?以及如何挖掘 Preivew 潜力。👇

随着 Xcode 开放 MCP Preview 渲染,让 AI 可以更快速参与 SwiftUI 设计。 但在自动化流水线里,视图脏缓存和设备对齐是个大麻烦。本文分享生产级避坑指南:为什么改了代码返回的还是旧截图?如何用 SourceFingerprint 确保 100% 一致?以及如何挖掘 Preivew 潜力。👇

71,905 次观看

Using the id modifier on subviews throws a wrench into List's optimization. Instead of just rendering what's visible, it forces all subviews to load instantly. To avoid this, build data sources that align with the Identifiable protocol.

Using the id modifier on subviews throws a wrench into List's optimization. Instead of just rendering what's visible, it forces all subviews to load instantly. To avoid this, build data sources that align with the Identifiable protocol.

46,098 次观看

SwiftUI List row height animation is broken by design — and most fixes just avoid the problem. This deep-dive shows how to actually solve it: custom Layout, state machine decoupling, and animatable spacing — all native SwiftUI, no UIKit.

SwiftUI List row height animation is broken by design — and most fixes just avoid the problem. This deep-dive shows how to actually solve it: custom Layout, state machine decoupling, and animatable spacing — all native SwiftUI, no UIKit.

13,651 次观看

SwiftUI List 的行高动画,从设计上就存在缺陷——而大多数"解决方案"不过是在绕开问题。 这篇文章给出真正的解法:自定义 Layout、状态机解耦、可动画化的 spacing——全程原生 SwiftUI,没有 UIKit。

SwiftUI List 的行高动画,从设计上就存在缺陷——而大多数"解决方案"不过是在绕开问题。 这篇文章给出真正的解法:自定义 Layout、状态机解耦、可动画化的 spacing——全程原生 SwiftUI,没有 UIKit。

10,311 次观看