It looks like your content view isn't wrapped in a NavigationView, only the detail. That won't work, it's like a parent/detail relationship.ContentView.swift:
var body: some View {
NavigationView {
HStack {
NavigationLink(destination: DetailView()) {
Text("Summary")
}
}
}
}
From the DetailView.swift file (remove the second navigation view):
var body: some View {
VStack {
Text("Detail View")
}
}
Post
Replies
Boosts
Views
Activity
Turns out, DTS tells me this is because of a bug in CoreML... which will hopefully be fixed in the next release.
I got around this by using a ZStack.
Color.red
MyOtherView()
}
Errr, that last post doesn't look right but hopefully you get the idea.
ZStack {
	 Color.red
	 MyView()
}
@keelay The store is being created lazily - when it's injected into the environment. As far as saving after certain actions, you can use the MOC in SwiftUI just as you would in a UIKit or AppKit app. This example also saves when the scene goes into the background state.
Same issue for me. I filed FB7829539.
Take a look at @SceneStorage.
Compiling against beta 2 and I figured this out. Turns out I was setting my Spotlight delegate before setting the persistent history tracking attribute. Well, setting the Spotlight delegate must open the store and that's where this was coming from... this asserted in b2 making it obvious. The fix was to re-arrange the code so the Spotlight delegate is set last.
I'm having this same issue. What is an App Store Connect 'developer profile'? I've never heard of such a thing and a search turned up nothing.
Seeing the same thing here. I'll dupe your FB.
This really sounds like a bug - I’d encourage you to submit a Feedback with the above sample code - limited time to get bugs fixed in this release cycle!
I had this happen with Google Sheets but only that once so I haven't yet filed a FB.
Odd. Yes, works for me with their sample and in my own project.
Hmmm. Should I be using the Focus System for this?
Since I wrote the above post, I've been trying to get it to work with the focus system and it feels like I'm so close, just can't quite get it there.
If anyone has any tips, they would be much appreciated.