You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@EnvironmentObject > @ObjectBinding
[use EnvironmentObject to pass data around view hierarchy indirectly
while ObjectBinding just to pass from superview to nearest child view (subsequently)]
References: (note to self, add new articles on the top)
SDK diffs:
==
since SwiftUI is value type
everytime you use reference type, use @ObjectBinding
@State
BindableObject:
@EnvironmentObject > @ObjectBinding
[use EnvironmentObject to pass data around view hierarchy indirectly
while ObjectBinding just to pass from superview to nearest child view (subsequently)]
@State > @binding
super
View
should have @Statechild
View
should have @bindingsuperView @State [pass]-> childView @binding
reference: https://developer.apple.com/wwdc19/226
--
TIL: SwiftUI List and ForEach reuse cell internally
https://twitter.com/jckarter/status/1143704650215858177?s=20
--
SwiftUI together with Combine will change everything we knew about iOS/macOS/tvOS/watchOS or whateverOS development
The text was updated successfully, but these errors were encountered: