https://github.com/ukushu/macos_accessibilitypermission
https://github.com/ukushu/macos_accessibilitypermission
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/ukushu/macos_accessibilitypermission
- Owner: ukushu
- Created: 2023-08-09T01:26:38.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2023-08-12T23:19:16.000Z (almost 2 years ago)
- Last Synced: 2025-01-12T10:14:11.307Z (5 months ago)
- Language: Swift
- Size: 44.9 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# MacOS Accessibility request repository
This repository shows how to add your app to:
System Settings -> Privacy and Security -> Accessibility list
Date of repo creation: 2023 year,
Swift 5
MacOs target > 11.0
Sandbox status: DOES NOT WORK WITH SANDBOX ENABLED ( details are here: https://developer.apple.com/forums/thread/24288 )
How to use with sandbox?
> Worth noting that Sandboxed apps signed with Mac Development or official Mac App Store certificates WILL show the Accessibility prompt. But Developer ID signed apps will not show the prompt. This applies to 10.15 and 11.0 and possible 10.14 too. –
Nick Moore
>
> https://stackoverflow.com/a/50901425/4423545So (looks like) this code does not do promts Alert if app is sandboxed with Development certificate, but promt will work on official release.
[![Accessibility permission request using Swift][1]][1]
[1]: https://i.stack.imgur.com/cW0mk.gif