I am new to SwiftUI (like most people) and trying to figure out how to remove some whitespace above a List that I embedded in a NavigationView
In this image, you can
You could extend native View protocol like this:
extension View { func hideNavigationBar() -> some View { self .navigationBarTitle("", displayMode: .inline) .navigationBarHidden(true) } }
Then just call e.g.:
ZStack { *YOUR CONTENT* } .hideNavigationBar()