Fixed navigation bar
This commit is contained in:
parent
5346f2c3fd
commit
5dc0c7a74f
|
@ -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 {
|
||||||
|
TextField("Customer ID", text: $customerId)
|
||||||
|
|
||||||
Section {
|
SecureField("Password", text: $password)
|
||||||
TextField("Customer ID", text: $customerId)
|
}
|
||||||
|
|
||||||
SecureField("Password", text: $password)
|
Section {
|
||||||
}
|
HStack {
|
||||||
|
Spacer()
|
||||||
Section {
|
Button(action: { self.addAccount() },
|
||||||
HStack {
|
label: { Text("Add") })
|
||||||
Spacer()
|
.disabled(!self.isRequiredDataEntered())
|
||||||
Button(action: { self.addAccount() },
|
Spacer()
|
||||||
label: { Text("Add") })
|
|
||||||
.disabled(!self.isRequiredDataEntered())
|
|
||||||
Spacer()
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
.hideNavigationBar()
|
|
||||||
}
|
}
|
||||||
|
.navigationBarTitle(Text("Add account"), displayMode: NavigationBarItem.TitleDisplayMode.inline)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue