My ipAd app is now crashing when being run on a Mac (with designed for iPad emulator). It. has been working a month ago, today was first time I tried in awhile.
I get a warning "It's not legal to call -layoutSubtreeIfNeeded on a view which is already being laid out. If you are implementing the view's -layout method, you can call -[super layout] instead. Break on void _NSDetectedLayoutRecursion(void) to debug. This will be logged only once. This may break in the future."
shortly after that the App Crashes. Thread 1: EXC_BAD_ACCESS (code=1, address=0x14a0839653d0)
The crash happens when my main view (in a Tab view) goes to a DetailView. I stripped out all functionality in my code and it still happens
mainView NavigationLink{ ImageDetailView2 () } label: { img }
struct ImageDetailView2: View {
var body: some View {
Text("Hello, World!")
}
}
Any help would be appreciated