Switch to popover here too

This commit is contained in:
Max Goedjen 2020-11-11 15:52:40 -08:00
parent 763b6ea57d
commit 8353e65f2b
No known key found for this signature in database
GPG Key ID: E58C21DD77B9B8E8

View File

@ -20,7 +20,7 @@ struct SecretListView: View {
}
}
}
.sheet(item: $deletingSecret) { secret in
.popover(isPresented: .constant(deletingSecret == secret)) {
if let modifiable = store as? AnySecretStoreModifiable {
DeleteSecretView(store: modifiable, secret: secret) { deleted in
deletingSecret = nil
@ -30,6 +30,7 @@ struct SecretListView: View {
}
}
}
}
}