Changed checkbox to radio button for clearer UI.

This commit is contained in:
Josh Heyse 2021-01-30 21:39:02 -06:00
parent dca340ad40
commit 2459f7ac29

View File

@ -26,8 +26,12 @@ struct CreateSecretView<StoreType: SecretStoreModifiable>: View {
TextField("Shhhhh", text: $name).focusable() TextField("Shhhhh", text: $name).focusable()
} }
HStack { HStack {
Toggle(isOn: $requiresAuthentication) { VStack(spacing: 20) {
Text("Requires Authentication (Biometrics or Password)") Picker("", selection: $requiresAuthentication) {
Text("Requires authentication (Biometrics or Password) before each use").tag(true)
Text("Does not require authentication for each use once the user unlocks the computer").tag(false)
}
.pickerStyle(RadioGroupPickerStyle())
} }
Spacer() Spacer()
} }