Skip to content

Instantly share code, notes, and snippets.

@NorrinRadd
Created June 12, 2014 14:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save NorrinRadd/f6073fc721224d69bc9f to your computer and use it in GitHub Desktop.
Save NorrinRadd/f6073fc721224d69bc9f to your computer and use it in GitHub Desktop.
Swift functions on all types
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