22

Wrapper for handling iOS SDK APIs that take in error by reference.

Some of the benefits:

  • Simplified handling of methods that take in NSErrorPoint.
  • No more declaring that pesky NSError variable to pass by reference (use $0 shorthand argument name in closure passed to the wrapper).
  • Chaining handlers for success and failure.
  • Streamlined downcasting handling (needed because often the result of those methods is AnyObject? instance).

Check out NSErrorPointerWrapper on GitHub.