NSObject
extension NSObject
-
Returns an array of all
classobjects within the running swift program that conform to a givenprotocol.Declaration
Swift
public func classesConformingToProtocol(_ protocol: Protocol) -> [AnyClass]Parameters
protocolThe
protocolto be used to check for conformanceReturn Value
An array of
classobjects
NSObject Extension Reference