From 7285afaeb0e229c48d5b67f44c0822d30000303f Mon Sep 17 00:00:00 2001 From: Martijn <2139844+funnel20@users.noreply.github.com> Date: Tue, 3 Sep 2024 14:20:44 +0200 Subject: [PATCH] Fix for https://github.com/evgenyneu/Cosmos/issues/204 1) Resolved "Cannot find type 'XXX' in scope" by adding `import Cosmos` 2) Resolved "No known class method for selector 'YYY'" by replacing `@objc` by `@objcMembers` so all methods within the class will be exposed to Objective-C. --- Demo/CosmosSettingsObjCBridge.swift | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Demo/CosmosSettingsObjCBridge.swift b/Demo/CosmosSettingsObjCBridge.swift index 556f52a..996c3e9 100644 --- a/Demo/CosmosSettingsObjCBridge.swift +++ b/Demo/CosmosSettingsObjCBridge.swift @@ -1,4 +1,5 @@ import UIKit +import Cosmos /** @@ -23,7 +24,7 @@ import UIKit [CosmosSettingsObjCBridge setUpdateOnTouch: NO inCosmosView:self.cosmosView]; */ -@objc public class CosmosSettingsObjCBridge: NSObject { +@objcMembers public class CosmosSettingsObjCBridge: NSObject { /**