Oddbean new post about | logout

Notes by de704d16 | export

 @810ec5be I love this article, this is an area I'm learning about right now.

My view is you should never write to bindings outside of a SwiftUI view call back.

Even synchronizing updates onto the main thread, traditionally, didn't save you from writing at the wrong moment in the view life cycle. It's possible that has changed more recently.

I suggest using an observable object to synchronize the changes; these are safe to write to at any time using the main thread.