Hello,
I have the problem that a navigation view with a shape has a high distance to the top (see picture). How can I reduce this so that it looks "normal".
The Code looks like this:
struct EinstellungsView: View {
@ObservedObject var userSettings = UserSettings()
@State var darkMode = false;
var body: some View {
NavigationView {
Form {
Section(header: Text("PROFILE")) {
TextField("Anzeigename", text: $userSettings.username)
Toggle(isOn: $darkMode) {
Text("Darkmode")
}
}
Section(header: Text("Währungen")){
Picker(selection: $userSettings.currencyBase, label: Text("Währungsbasis")){
ForEach(userSettings.currencyOptions, id: \.self) { währungen in
Text(währungen)
}
}
Toggle(isOn: $userSettings.currencyFormat) {
Text("Alt. Währungsformatierung")
}
}
}
.navigationBarTitle("Settings")
}
}
}