We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
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()
The text was updated successfully, but these errors were encountered:
Fixing github issue 26 and cleaning up the action handler with a type…
ce49f5e
…alias
Thanks for creating the issue. I've added a test for this issue and updated the code handle it
Sorry, something went wrong.
No branches or pull requests
When trying to invoke addAction on ActionSheet class instance with parameters title, style and handler, Xcode reports:
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()
The text was updated successfully, but these errors were encountered: