本篇为译文,原文可见:链接
本周的 issue ,我们主要讨论 updating the view state、animations in SwiftUI 和 debugging Combine 。
文章
如果你正在查找关于 body 是计算型时,去尝试修改 view 状态的资料的话,这篇文章将会告诉你可以做哪些操作以及不应该做哪些操作。
Fernando Moya de Rivas 使用 SwiftUI
创建了几个有趣的动画。
学习不同方式来调试由 Swift Combine framework 编写的 functional reactive code 。通过 print()
和 handleEvents()
来查看 console
;通过 breakpointOnError()
和 breakpoint()
来生成 Xcode
断点;以及通过绘制图表的方式。
Josh Adams 通过 SwiftUI
修改了他的一个 app,并分享了一些学习心得。
本篇文章中,Jim Dovey 解释了如何使用 SwiftUI
与 CoreData
进行绑定操作。
The folks at Just Eat have experimentation and feature flagging at their heart and they’ve developed a component, named JustTweak, to make things easier on iOS.
John Sundell 找到了一些不同的方式来添加插件支持,这样可以使得系统变得更加灵活。
介绍了如何编写 Swift 代码的文档注释。
介绍了 Alexander Grebenyuk 如何从手动测试他的框架到通过单元测试来自动化测试每一次的变更。
继续阅读“Swift Weekly 中文 – Issue #176”