Interact with the Objective-C runtime.
Framework
- Foundation
Interact with the Objective-C runtime.
Framework
func NSClass From String(String) -> Any Class?
Obtains a class by name.
func NSString From Class(Any Class) -> String
Returns the name of a class as a string.
func NSSelector From String(String) -> Selector
Returns the selector with a given name.
func NSString From Selector(Selector) -> String
Returns a string representation of a given selector.
func NSString From Protocol(Protocol) -> String
Returns the name of a protocol as a string.
func NSProtocol From String(String) -> Protocol?
Returns a the protocol with a given name.
func NSGet Size And Alignment(Unsafe Pointer<Int8>, Unsafe Mutable Pointer<Int>?, Unsafe Mutable Pointer<Int>?) -> Unsafe Pointer<Int8>
Obtains the actual size and the aligned size of an encoded type.