Maybe you just need to add translucency settings in your SwiftUI view
![demo1](https://i.stack.imgur.com/NEOkt.png)
init() {
UINavigationBar.appearance().isTranslucent = true
}
alternate is to reset appearance completely, like
![demo2](https://i.stack.imgur.com/OVKQQ.png)
init() {
let appearance = UINavigationBarAppearance()
appearance.configureWithTransparentBackground()
appearance.backgroundColor = UIColor.systemBackground.withAlphaComponent(0.5)
UINavigationBar.appearance().standardAppearance = appearance
}
Demo prepared and tested with Xcode 12 / iOS 14
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…