-
Notifications
You must be signed in to change notification settings - Fork 323
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
PermissionButton improvements #94
base: master
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great PR, thanks! Just a little change and we're good to go :)
@@ -450,7 +450,15 @@ open class PermissionButton: UIButton { | |||
Tells the view that its superview changed. | |||
*/ | |||
open override func didMoveToSuperview() { | |||
render(.normal) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you use render()
here please? I prefer to keep update()
solely as a public interface.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sure, just updated this.
Anything new here? I did the requested change two weeks ago, still not merged though. |
@delba What about merging this? |
@delba Ping. |
@delba do you mind taking a second pass at this when you get a free second? |
@jeffaburt @CraigSiemens See my comment here. |
When using the PermissionButton in an app I recognised two issues. I opened an issue for each:
This PR solves both #92 and #93 and probably also #116.
NOTE: Since @delba is not answering, I've integrated #90 to this PR. If you want to use a iOS 10, Xcode 9 and Swift 4 compatible version of this framework, feel free to integrate my fork instead:
https://github.com/Dschee/Permission