Is there a programmatic way to check if a user has iOS Screen Time enabled on their device?
iOS Screen Time enabled check
I filed a feedback request, alongside this post FB11993689
kind of. I think the following works
do {
try await center.requestAuthorization(for: .individual)
} catch {
if let errorType = error as? FamilyControlsError {
switch (errorType) {
case .unavailable:
// If I'm understanding the documentation correctly, execution will reach this block if ScreenTime is disabled
}
}
source: https://developer.apple.com/documentation/familycontrols/familycontrolserror