The following code causes an error in Xcode 26.0 beta3 in iOS Simulator with iOS 26.0.
After starting the App, scroll to the end of the grid and the app will break.
Testet with Xcode Playground with platforms: [ .iOS("17.0")],
Simplest possible variant:
import SwiftUI
import MapKit
struct ContentView: View {
var body: some View {
NavigationStack {
ScrollView {
LazyVGrid(columns: [GridItem()]) {
ForEach(1...12, id:\.self) { i in
Text("Hello \(i)")
.frame(height: 150)
}
Map { }
.frame(height: 150)
}
}
}
}
}
Thrown error:
Observation tracking feedback loop detected! Make a symbolic breakpoint at UIObservationTrackingFeedbackLoopDetected to catch this in the debugger. Refer to the console logs for details about recent invalidations; you can also make a symbolic breakpoint at UIObservationTrackingInvalidated to catch invalidations in the debugger. Object receiving repeated [updateProperties] invalidations: <UIKit.NavigationBarContentView: 0x103026000; frame = (0 0; 402 54); gestureRecognizers = <NSArray: 0x600000c26790>; layer = <CALayer: 0x600000c2d4a0>> contentView=0x0000000103026000
These three nested views are necessary to reproduce the error: NavigationStack -> ScrollView -> LazyVGrid
In iOS Simulator with iOS 18.0 there is no error message, the CPU raises to 100%.
With Xcode 16.4 the program runs error-free.
Is there a solution?