1. Navigation Bar Hidden
.navigationBarHidden(true)
In SwiftUI Project when we write this code, the NavigationBar
will be hidden, but the slip back will also be invalid. At this time, we can add Navigation Extension
.
2. Extension
|
|
When we add the extension, then run the project, we will found we did resolve the problem. So easy.