Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't invoke addAction(_:style:handler) on ActionSheet instance #26

Closed
paweljankowski opened this issue Mar 24, 2016 · 1 comment
Closed

Comments

@paweljankowski
Copy link

When trying to invoke addAction on ActionSheet class instance with parameters title, style and handler, Xcode reports:

Ambiguous use of addAction(_:style:handler)

ActionSheet().addAction("Test", style: .Default, handler: { _ in print("Test") }).show()

I've tried to use LKAlertController instance and it works:

LKAlertController(style: .ActionSheet).addAction("Test", style: .Default, handler: { _ in print("Test") }).show()

@eriksargent
Copy link

Thanks for creating the issue. I've added a test for this issue and updated the code handle it

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

No branches or pull requests

2 participants