依存追跡のタイミング、ObservationIgnoredの使い方、ObservableObjectからの移行表まで。
注意したいのは、配列の要素の変更が追跡されないなどの落とし穴です。
移行、もう済みましたか?
ai-pick.jp/64566/
依存追跡のタイミング、ObservationIgnoredの使い方、ObservableObjectからの移行表まで。
注意したいのは、配列の要素の変更が追跡されないなどの落とし穴です。
移行、もう済みましたか?
ai-pick.jp/64566/
ObservableObject publishes at the object level, so every observing view redraws, whatever changed.
Reading a property for a debug print now subscribes you to it.
#iosdev #swiftui
For me it's probably this one by @polpielladev.bsky.social about listening to property changes in `@Observable` classes with AsyncStream and willSet instead of Combine
www.polpiella.dev/observable-p...
#iosdev
For me it's probably this one by @polpielladev.bsky.social about listening to property changes in `@Observable` classes with AsyncStream and willSet instead of Combine
www.polpiella.dev/observable-p...
#iosdev
⬇️ Find out how it works and how to use it for your own app in our latest post!
lickability.com/blog/introdu...
⬇️ Find out how it works and how to use it for your own app in our latest post!
lickability.com/blog/introdu...
And because the @Spice property wrapper’s projected value is a publisher, it can be observed in UIKit with ExampleSpiceStore.$environment.sink(…).
And because the @Spice property wrapper’s projected value is a publisher, it can be observed in UIKit with ExampleSpiceStore.$environment.sink(…).
#NoYearZero #iPadOS13 #Notarization #Wallet #ObservableObject #SwiftUI #buildphase #GenZ #NightMode #jailbreaking #Starbucks #methodDispatch http://sourcerer.io #Swift5.1 #EveryTimeZone #HomePod #RiseofSkywalker
https://mtjc.fireside.fm/280
fatbobman.com/en/posts/ad...
fatbobman.com/en/posts/ad...
The #dotnetmaui team snuck this one through quietly! You can set compiled bindings now without having to specify the datatype when you set an explicit binding context!
When did this happen? How did I miss this?
The #dotnetmaui team snuck this one through quietly! You can set compiled bindings now without having to specify the datatype when you set an explicit binding context!
When did this happen? How did I miss this?
Cause when the view is redrawn, the value in the singleton is too?
Cause when the view is redrawn, the value in the singleton is too?
https://captainswiftui.substack.com/p/objectively-better-observably-trickier
#swiftui
https://captainswiftui.substack.com/p/objectively-better-observably-trickier
#swiftui
Not as straightforward as with ObservableObject, but does the trick!! 🚀
Not as straightforward as with ObservableObject, but does the trick!! 🚀
#csharp #dotnet
But realizing dependency injection in SwiftUI for something like an atproto client can be as easy as a ObservableObject created on the ContentView and passed down as a EnvironmentObject
But realizing dependency injection in SwiftUI for something like an atproto client can be as easy as a ObservableObject created on the ContentView and passed down as a EnvironmentObject
The author builds a CameraManager, a UIViewRepresentable preview, and SwiftUI views using ObservableObject and delegate patterns.
www.createwithswift.com/integrating-...
The author builds a CameraManager, a UIViewRepresentable preview, and SwiftUI views using ObservableObject and delegate patterns.
www.createwithswift.com/integrating-...