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


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

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


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

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!