The following is request authorization for familyControls:
AuthorizationCenter.shared.requestAuthorization { result in
// The request can either result in success or failure
switch result {
case .success():
break
case .failure(let error):
print("Error for Family Controls: (error.localizedDescription)")
}
}
But the output is"Error for Family Controls: Family Controls is only available for child and teen iCloud accounts."
I have added the "Family Controls" capability, How do I use "Family Controls"