jevonmao / PermissionsSwiftUI

A SwiftUI package to beautifully display and handle permissions.

Home Page:https://jevonmao.github.io/PermissionsSwiftUI/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Add ScreenTime permission

sidan5 opened this issue · comments

commented

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

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