SwiftUI – How to set the title of a NavigationView to large title (or small)?

SwiftUI (iOS 14+) NavigationView { TopLevelView { // […] } .navigationBarTitleDisplayMode(.inline) // ⬅️ Important part } SwiftUI (Xcode 11.3) SwiftUI navigationBarTitle modifier has an optional displayMode property which you can set to .inline for small titles and .large for large titles. See documentation NavigationView { TopLevelView { // […] } .navigationBarTitle(“Test”, displayMode: .inline) // ⬅️ … Read more

How to disable NavigationView push and pop animations

Xcode 11.3: Right now there is no modifier to disable NavigationView animations. You can use your struct init() to disable animations, as below: struct ContentView : View { init(){ UINavigationBar.setAnimationsEnabled(false) } var body: some View { NavigationView { VStack { NavigationLink(“Push Me”, destination: Text(“PUSHED VIEW”)) } } } }

How to remove the default Navigation Bar space in SwiftUI NavigationView

For some reason, SwiftUI requires that you also set .navigationBarTitle for .navigationBarHidden to work properly. NavigationView { FileBrowserView(jsonFromCall: URLRetrieve(URLtoFetch: applicationDelegate.apiURL)) .navigationBarTitle(“”) .navigationBarHidden(true) } Update As @Peacemoon pointed out in the comments, the navigation bar remains hidden as you navigate deeper in the navigation stack, regardless of whether or not you set navigationBarHidden to false in … Read more