I found that using the new Tab API (https://developer.apple.com/documentation/swiftui/tab) on iOS 18 resolves the problem for me.
Topic:
UI Frameworks
SubTopic:
SwiftUI
Tags: