PermissionsSwiftUI icon indicating copy to clipboard operation
PermissionsSwiftUI copied to clipboard

Add ScreenTime permission

Open sidan5 opened this issue 1 year ago • 1 comments

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

sidan5 avatar Feb 06 '24 12:02 sidan5

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

N3v1 avatar Jun 04 '24 19:06 N3v1