Description:
When wrapping a UIKit UIScrollView in SwiftUI via UIViewControllerRepresentable, applying topEdgeEffect.style = .hard, then using .toolbar() and .ignoresSafeArea(.container) on the SwiftUI view causes an incorrect/truncated initial height of Navigation Bar on first load. The height will refresh to the correct value after backgrounding the app or switching tabs.
Steps to Reproduce:
Wrap a UICollectionViewController in UIViewControllerRepresentable.
Set collectionView.topEdgeEffect.style = .hard.
Embed it in a SwiftUI NavigationStack and apply .toolbar() and .ignoresSafeArea()
Happens on Xcode 26.x and iOS 26.x (untested on 27s).