Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@erica
Last active August 29, 2015 14:13
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 erica/e2fbd5c910311d1c96d2 to your computer and use it in GitHub Desktop.
Save erica/e2fbd5c910311d1c96d2 to your computer and use it in GitHub Desktop.
Using a postfix operator to bridge to objective c
postfix operator ⟹ {}
postfix func ⟹ <T:_ObjectiveCBridgeable>(obj : T) -> AnyObject { return _bridgeToObjectiveC(obj)! }
var s = "23.692"
NSString(string:s).doubleValue
s⟹.doubleValue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment