How to customize the NavigationBar in SwiftUI?

I dont want to use UIKit to customize the navigationBar,I want to customize the navigationBar with swiftUI.... but I dont know how to do ....Just like changing navigationBar 's barTintColor...or customize the titleView....

Accepted Reply

You can’t do that yet in SwiftUI. Hopefully it should come soon.
The closest you can get is
Code Block Swift
.onAppear {
UINavigationBar.appearance().barTintColor = .systemRed
}

Replies

You can’t do that yet in SwiftUI. Hopefully it should come soon.
The closest you can get is
Code Block Swift
.onAppear {
UINavigationBar.appearance().barTintColor = .systemRed
}