DEV Community

Oluwasanmi Aderibigbe
Oluwasanmi Aderibigbe

Posted on

Day 79 of 100 Days of SwiftUI

I just completed day 79 of 100 days of swiftui. Today, I learnt about the TabView and also how to read custom@EnvironmentObject.

@EnvironmetObject is a property wrapper that is used to get objects from the environment. What makes it different from the @ObservedObject is the fact that you don't have to pass objects you need into every view. With @EnvironmentObject every child view has access to environment objects declared by it's parent.

Top comments (0)

Sentry image

See why 4M developers consider Sentry, “not bad.”

Fixing code doesn’t have to be the worst part of your day. Learn how Sentry can help.

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay