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

Add ScreenTime permission #152

Open
sidan5 opened this issue Feb 6, 2024 · 1 comment
Open

Add ScreenTime permission #152

sidan5 opened this issue Feb 6, 2024 · 1 comment
Labels
feature request Request or suggestion for new feature

Comments

@sidan5
Copy link

sidan5 commented Feb 6, 2024

Add the Screen Time permission into PermissionsSwiftUI's supported permissions. The Screen Time permission is needed to control screen time.

@sidan5 sidan5 added the feature request Request or suggestion for new feature label Feb 6, 2024
@N3v1
Copy link
Contributor

N3v1 commented Jun 4, 2024

Hey @sidan5,

I like the idea of your feature request, but there might not be an official way to achieve this. The ScreenTimeAPI can only block websites, and the STScreenTimeConfiguration is poorly documented and has no available methods to allow this behavior for non-apple (internal) apps.

If I am mistaken, I apologize.

https://developer.apple.com/documentation/screentime

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request Request or suggestion for new feature
Projects
None yet
Development

No branches or pull requests

2 participants