Anyone do android+compose dev and ios swiftUI dev?...
# random
c
Anyone do android+compose dev and ios swiftUI dev? I'm learning swift UI and a few youtube instructors are using @EnvironmentObject and it's giving me CompositionLocal vibes... which means I feel like i should stay away from it. lol
s
I'm not, but I have gotten the same vibe from the iOS devs at our workplace. For instance, They used an
@EnvironmentObject
to the current user after logging in. However, I think they landed on it being more problematic than they thought, so they went away from it. IIRC, it was something about it not being available inside of dialogs or something, but that could also just be me misremembering stuff.
👍 1