Fixed navigation bar

This commit is contained in:
dankito 2020-07-16 17:46:46 +02:00
parent 5346f2c3fd
commit 5dc0c7a74f
1 changed files with 18 additions and 20 deletions

View File

@ -22,30 +22,28 @@ struct AddAccountDialog: View {
self.findBank() self.findBank()
}) })
return NavigationView { return Form {
Form { Section {
Section { TextField("Bank code", text: textValueBinding)
TextField("Bank code", text: textValueBinding) }
}
Section { Section {
TextField("Customer ID", text: $customerId) TextField("Customer ID", text: $customerId)
SecureField("Password", text: $password) SecureField("Password", text: $password)
} }
Section { Section {
HStack { HStack {
Spacer() Spacer()
Button(action: { self.addAccount() }, Button(action: { self.addAccount() },
label: { Text("Add") }) label: { Text("Add") })
.disabled(!self.isRequiredDataEntered()) .disabled(!self.isRequiredDataEntered())
Spacer() Spacer()
}
} }
} }
.hideNavigationBar()
} }
.navigationBarTitle(Text("Add account"), displayMode: NavigationBarItem.TitleDisplayMode.inline)
} }