-
SwiftData 实战:用现代方法构建 SwiftUI 应用
在之前的文章“SwiftData 中的并发编程”中,我们深入探讨了 SwiftData 提出的创新并发编程模式,包括它的原理、核心操作及相关的注意事项。这种优雅的编程解决方案赢得了不少赞誉。然而,随着更多开发者在实际的 SwiftUI 应用中尝试使用 SwiftData,他们遇到了一些挑战:尤其在启用 Swift 的严格并发检查…
-
https://www.youtube.com/watch?v=RpdHOCMz9Pw
-
## Relationships in SwiftData: Changes and Considerations
In previous two articles, [Mastering Relationships in Core Data: Fundamentals](https://fatbobman.com/en/posts/mastering-relationships-in-co…
-
## Summary
Simple index view that assumes login credentials, has backend support for JSON API endpoint, and displays a giant list of books.
## Details
- SwiftUI for the views
- SwiftData, or a Book…
-
If a SwiftData model annotation is added to a class, the build will fail with "Method does not override any method from its superclass".
It can be reproduced using a clean SwiftData project, adding…
-
### How frequently does the bug occur?
Always
### Description
A
App is crashing when running below iOS 17 with the project having SwiftData model
The crash is happening inside RLMSchema share…
-
Hello @AugustDev,
I am testing the MacOS 15 & iOS 18 Betas and it seems that some things have changed which are causing a crash on launch.
Do you want me to send you crash logs anywhere?
-
Have a fork and made a quick fix, check here: https://github.com/jychunyih/SwiftData/blob/master/SwiftData.swift, or get the code in my fork: https://github.com/jychunyih/SwiftData.
-
https://www.fatbobman.com/posts/mastering-Observation/
在 WWDC 2023 中,苹果介绍了 Swift 标准库中的新成员:Observation 框架。它的出现有望缓解开发者长期面临的 SwiftUI 视图无效更新问题。本文将采取问答的方式,全面而详尽地探讨 Observation 框架,内容涉及其产生原因、使用方法、工作原理以及注意…
-
https://www.fatbobman.com/posts/concurret-programming-in-SwiftData/
在 Core Data 中进行并发编程可能并不困难,但是充满了陷阱。即使对 Core Data 有充分的经验,稍有疏忽也可能在代码中埋下隐患,从而使应用程序变得不安全。SwiftData 作为 Core Data 的继任者,提供了一种更加优雅、更加安全的并发…