https://kotlinlang.org logo
Title
c

Colton Idle

02/04/2023, 4:06 AM
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

sindrenm

02/04/2023, 9:02 AM
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.