From f86e67075e20c9a0a38cf16c9447e84aafccc5fd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Anders=20=C3=85berg?= Date: Wed, 30 Apr 2025 23:32:31 +0200 Subject: [PATCH] Don't use kvc --- .../CredentialProviderViewController.swift | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/apps/desktop/macos/autofill-extension/CredentialProviderViewController.swift b/apps/desktop/macos/autofill-extension/CredentialProviderViewController.swift index 50d79ba7238..5befed88563 100644 --- a/apps/desktop/macos/autofill-extension/CredentialProviderViewController.swift +++ b/apps/desktop/macos/autofill-extension/CredentialProviderViewController.swift @@ -302,12 +302,8 @@ class CredentialProviderViewController: ASCredentialProviderViewController { // Convert excluded credentials to an array of credential IDs var excludedCredentialIds: [Data] = [] if #available(macOSApplicationExtension 15.0, *) { - // Use a runtime check approach that doesn't reference the property directly - let key = "excludedCredentials" - if let value = (request as AnyObject).value(forKey: key) { - if let excludedCreds = value as? [ASAuthorizationPlatformPublicKeyCredentialDescriptor] { - excludedCredentialIds = excludedCreds.map { $0.credentialID } - } + if let excludedCreds = request.excludedCredentials { + excludedCredentialIds = excludedCreds.map { $0.credentialID } } }