Follow

I think the lookup is purely by type, but maybe one of you can answer definitively?

RT @bjhomer@twitter.com

Can someone explain to me how “EnvironmentObject” knows which object to proxy in SwiftUI? Example:

@EnvironmentObject@twitter.com var p1: Person
@EnvironmentObject@twitter.com var p2: Person

Is there any way for ‘p1’ and ‘p2’ to point to different objects? Is the lookup purely by type?

🐦🔗: twitter.com/bjhomer/status/114

· · Mastodon Twitter Crossposter · 0 · 0 · 0
Sign in to participate in the conversation
Mastodon

Server run by the main developers of the project 🐘 It is not focused on any particular niche interest - everyone is welcome as long as you follow our code of conduct!