Disable iCloud credential storage pickers on iOS
This commit is contained in:
1 parent
57b95d7ca1
commit
858590aab9
2 files changed
+4
-6
No files matched your search
@@ -360,11 +360,10 @@ struct MobileIdentityEditor: View {
|
||||
}
|
||||
if original.usesPassword { Toggle("Remove Password", isOn: $removePassword) }
|
||||
Picker("Store password in", selection: $draft.passwordStorage) {
|
||||
Text("This Device")
|
||||
.tag(PasswordStorage.thisDevice)
|
||||
.disabled(original.usesPassword && original.passwordStorage == .iCloud)
|
||||
Text("This Device").tag(PasswordStorage.thisDevice)
|
||||
Text("iCloud").tag(PasswordStorage.iCloud)
|
||||
}
|
||||
.disabled(original.usesPassword && original.passwordStorage == .iCloud)
|
||||
if configuration.showsKey {
|
||||
Picker("Key", selection: $draft.keyID) {
|
||||
Text("None").tag(UUID?.none)
|
||||
|
||||
@@ -25,14 +25,13 @@ struct MobileKeyEditor: View {
|
||||
}
|
||||
if !model.isEnclave {
|
||||
Picker("Store in", selection: $model.storage) {
|
||||
Text("This Device")
|
||||
.tag(KeyStorage.thisDevice)
|
||||
.disabled(!model.canSelectThisDevice)
|
||||
Text("This Device").tag(KeyStorage.thisDevice)
|
||||
Text("iCloud").tag(KeyStorage.iCloud)
|
||||
if model.mode == .generate && model.canUseEnclave {
|
||||
Text("Secure Enclave").tag(KeyStorage.secureEnclave)
|
||||
}
|
||||
}
|
||||
.disabled(!model.canSelectThisDevice)
|
||||
}
|
||||
VStack(alignment: .leading, spacing: 8) {
|
||||
Text("Color")
|
||||
|
||||
Reference in new issue
Block a user