Post #911542
2024-11-19 08:10 UTC
I recently learned that if we want to have a lazy var inside an Observable class in Swift, we need to annotate it with @ObservationIgnored to skip synthesizing observation logic for the property. I wrote a blog post with an example: https://nilcoalescing.com/blog/LazyVarsInObservableClasses/
#Swift #iOSDev
Replies (0)
No replies.