Suggested approach: I would suggest you start off nice and broad, and say that the environment acts a bit like a singleton manager – you place objects in there and share them in many places. But then you want to dive into the details a little more, perhaps saying that actually you can subdivide the environment if you want, allowing some views to have different environment objects.
I would recommend you try to mention how the environment differs from just injecting an ObservableObject
instance in an initializer.
Estimated difficulty: Easy
See the full list of iOS interview questions
Link copied to your pasteboard.