-
Notifications
You must be signed in to change notification settings - Fork 324
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
setTitles doesn't work #88
Comments
and filled an issue with developer delba#88
It also seems, you can't set multiple titles for |
Hey @ysoftware, thanks for the issue. That's definitely a bug that was introduced during the automatic transition to Swift 3 (1ef678a) and has been fixed here 37c2770.
I'm not sure what you mean (?) The Thanks again! |
Since it's only checking for [.highlighted] and not .normal. Anyway, Thanks for the responce. |
Class PermissionButton
I'm not sure what's going on, but in
func setTitles(_ titles: [PermissionStatus: String?], forState state: UIControlState = UIControlState())
the first line isguard [.highlighted].contains(state) else { return }
which means, with the default value of
state
you've specified, this function will never run.Same goes for a few other functions.
I tried to set up my buttons just like in readme and their title is always empty.
The text was updated successfully, but these errors were encountered: