Home > Net >  SwiftUI NavigationView: Keeping back button while removing whitespace
SwiftUI NavigationView: Keeping back button while removing whitespace

Time:07-08

demo

struct SecondNavView: View {
    let item: String

    var body: some View {
        ZStack {
            Color.red
            Text(item)
        }
        .navigationBarTitleDisplayMode(.inline)  // << here !!
    }
}
  • Related