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

How to call function in handler #53

Closed
ImranIB opened this issue Jul 25, 2016 · 3 comments
Closed

How to call function in handler #53

ImranIB opened this issue Jul 25, 2016 · 3 comments

Comments

@ImranIB
Copy link

ImranIB commented Jul 25, 2016

I want to call function in item handler. On respective item click I want to perform an action. Any help?

let item = KCFloatingActionButtonItem()
item.icon = UIImage(named: "red_bar")
item.title = "RECORD"
item.handler = handler
item.titleColor = UIColor(red: 1, green: 0.8, blue: 0, alpha: 1.0)

@kciter
Copy link
Owner

kciter commented Jul 25, 2016

Hello, @ImranIB
You can assign to handler.

item.handler = { item in
     // ...
}

@ImranIB
Copy link
Author

ImranIB commented Jul 25, 2016

Thanks @kciter. issue resolved

@kciter
Copy link
Owner

kciter commented Jul 25, 2016

Good
This issue is closed. 😄

@kciter kciter closed this as completed Jul 25, 2016
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