I'm trying to create a protocol where one of the methods will return a dictionary of selector. But I'm running into an issue...
here is the protocol code:
@objc public protocol MazeProtocol: AnyObject {
@objc static func configurations() -> [String:Selector]
}
and here is the compiler error I'm getting:
MazeTableViewController.swift:12:24: Method cannot be marked @objc because its result type cannot be represented in Objective-C
If I remove the @objc
in front of the method, I get a similar error.