How do you do the following in Swift?
[SomeClass class]
The class method of NSObject is only available to Objective-C. How would you do the equivalent in Swift? I'm interfacing with an Objective-C 3rd party library.
How do you do the following in Swift?
[SomeClass class]
The class method of NSObject is only available to Objective-C. How would you do the equivalent in Swift? I'm interfacing with an Objective-C 3rd party library.
The answer seems to be:
SomeClass.self
and if you have an instance:
someInstance.dynamicType