Created
June 12, 2014 14:06
-
-
Save NorrinRadd/f6073fc721224d69bc9f to your computer and use it in GitHub Desktop.
Swift functions on all types
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
extension T! { | |
typealias ObjectiveCType = AnyObject | |
static func getObjectiveCType() -> Any.Type | |
func bridgeToObjectiveC() -> AnyObject | |
static func bridgeFromObjectiveC(x: AnyObject) -> T!? | |
static func isBridgedToObjectiveC() -> Bool | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment