If you want your object to be available to subviews, then you need attach it using the .environmentObject(someObject); Then, in the view you use @EnvironmentObject var myObj: SomeObject
Topic:
UI Frameworks
SubTopic:
SwiftUI
Tags: