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

No option to update state of PermissionButton on applicationWillEnterForeground #93

Closed
Tracked by #94
Jeehut opened this issue Feb 8, 2017 · 1 comment
Closed
Tracked by #94

Comments

@Jeehut
Copy link

Jeehut commented Feb 8, 2017

I've got a PermissionButton in my app, and although I know it is specified that the app will crash when changing permissions, it doesn't seem to crash when changing the location services permission (whenInUse) in my tests – neither in the Simulator, nor on the Device (both on debug and release builds) using iOS 10.2.1.

So, I need to be able to trigger an update of the PermissionButtons state manually in my app like so:

func applicationWillEnterForeground(_ application: UIApplication) {
    // some code to get the permission button
    permissionButton.update() // calls the render() method internally
}
@delba
Copy link
Owner

delba commented Mar 5, 2017

Let's keep the discussion in #94 !
Thanks for the PR btw :)

@delba delba closed this as completed Mar 5, 2017
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