Skip to content

Conversation

twobitlabs
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants