When asking for ScreenTime permission from users, were are seeing cases where
guard let error = error as? FamilyControlsError else {
print(String(describing: error)
print("\n")
print(error.localizedDescription)
return
}
prints
Error Domain=FamilyControls.FamilyControlsError Code=5 "(null)"
The operation couldn’t be completed. (FamilyControls.FamilyControlsError error 5.)
We've also seen this with error code 4 and 7. Why are these failing to cast to FamilyControlsError
?