Skip to content
This repository has been archived by the owner on Mar 6, 2024. It is now read-only.

Show dialog if accessibility permissions are not granted #60

Closed
sindresorhus opened this issue Oct 25, 2019 · 0 comments
Closed

Show dialog if accessibility permissions are not granted #60

sindresorhus opened this issue Oct 25, 2019 · 0 comments

Comments

@sindresorhus
Copy link
Owner

We also need to use AXIsProcessTrustedWithOptions to prompt for access if needed at launch.

See https://github.com/search?l=Swift&q=AXIsProcessTrustedWithOptions&type=Code for examples.

We can also listen to when the access is given: https://github.com/thompsonate/Shifty/blob/0140051cf8b132eaf153df5191861621f7c62e3a/Shifty/AppDelegate.swift#L184-L195

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant