SwiftData への大量インサート。
#SwiftData ModelActor の使い方が分からない。#macos #ios pic.twitter.com/8RLkgDBpFz
— chanzmao (@maochanz) December 7, 2023
Task.detached で @Query はそれなりに Observe してる。
スレッドの切り替えを考慮せずにUIスレッドのみで分かりやすく実装させようとするの強引すぎると思いながらも期待。
👉 【Swift】モデルクラスの ID に UUID() を使ってたらヤバい - PersistentIdentifier
👉 #SwiftData ModelActor の使い方が分からない。#macos #ios - YouTube