diff --git a/test-apps/ios-test-app/ios/App/App/AppDelegate.swift b/test-apps/ios-test-app/ios/App/App/AppDelegate.swift index 0fdc9d3..82fc8e6 100644 --- a/test-apps/ios-test-app/ios/App/App/AppDelegate.swift +++ b/test-apps/ios-test-app/ios/App/App/AppDelegate.swift @@ -92,7 +92,7 @@ class AppDelegate: UIResponder, UIApplicationDelegate, UNUserNotificationCenterD // Test if class can be cast to CapacitorPlugin.Type if let pluginType = aClass as? CAPPlugin.Type { // Try casting to CapacitorPlugin (which is CAPPlugin & CAPBridgedPlugin) - if let capacitorPluginType = pluginType as? (CAPPlugin & CAPBridgedPlugin).Type { + if pluginType is (CAPPlugin & CAPBridgedPlugin).Type { NSLog("DNP-DEBUG: ✅ Can cast to (CAPPlugin & CAPBridgedPlugin).Type") } else { NSLog("DNP-DEBUG: ❌ Cannot cast to (CAPPlugin & CAPBridgedPlugin).Type")