That's essentially what I've been doing. ZStack with the primary view as the first child and conditionally showing the sign up view over it. Seems to have worked well so far.
Post
Replies
Boosts
Views
Activity
The signatures for the ModelContainer convenience initializers have changed to take the configuration as a named parameter. This should do the trick:
struct AppleClosetApp: App {
let config = ModelConfiguration(url: AppGroup.facts.containerURL ?? URL(fileURLWithPath: ""))
var body: some Scene {
WindowGroup {
ClosetNavigationView()
.modelContainer(try! ModelContainer(for: Closet.self,
configurations: config))
}
}
}