UIAlertView-Blocks icon indicating copy to clipboard operation
UIAlertView-Blocks copied to clipboard

Updated constructors to return instancetype to improve swift compatibility

Open twobitlabs opened this issue 10 years ago • 0 comments

When using UIAlertView+Blocks in swift, the id constructors are exposed as static methods returning AnyObject!:

ributton-old

Updating them to return instancetype exposes some more expected initializers:

ributtonitem-fixed

It actually feels like more of a side effect than a direct result of this change, but the instancetype methods feel cleaner and the result is more usable in Swift.

twobitlabs avatar Aug 21 '15 01:08 twobitlabs