mirror of
https://github.com/maxgoedjen/secretive.git
synced 2025-04-19 22:12:26 +00:00
Changed checkbox to radio button for clearer UI.
This commit is contained in:
parent
dca340ad40
commit
2459f7ac29
@ -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()
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user