Post

Replies

Boosts

Views

Activity

Reply to Swift Playgrounds .environmentObject error CreatureZoo()
For those struggling Do this: Try adding .environmentObject(data) after the navigationStack closure var body: some Scene { SPCAssessableWindowGroup(app: self, assessmentCandidates: [CreatureZoo()]) { NavigationStack{ ContentView() .navigationTitle("My Creatures") }.environmentObject(data) on the MyApp page
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Jun ’24