Native Swift interop bindings for Apple FamilyControls
Install
| Product | Versions |
|---|---|
| .NET |
README
SwiftBindings.Apple.FamilyControls
Native .NET bindings for Apple's FamilyControls framework β Screen Time authorization for parental-control and digital-wellbeing apps. These are not Objective-C proxy wrappers; they use .NET 10's native Swift interop for direct, high-performance calls into Swift APIs from C#.
π Full usage guide β β the authorization flow, the opaque-token model, activity selections, persistence, and what you can (and can't) inspect.
Installation
dotnet add package SwiftBindings.Apple.FamilyControls
Requirements
- .NET 10.0+
- iOS 26.2+
- macOS host for development
- Family Controls capability enabled on the app
Usage
Authorization
using FamilyControls;
var center = AuthorizationCenter.Shared;
var status = AuthorizationStatus.NotDetermined;
if (status.Tag == AuthorizationStatus.CaseTag.Approved)
{
// App is authorised to read or apply Screen Time restrictions.
}
Errors
var description = FamilyControlsError.AuthenticationMethodUnavailable.GetErrorDescription();
Documentation
- Usage guide (wiki) β full C# walkthrough of the binding surface
- Apple FamilyControls framework
How It Works
These bindings are auto-generated by Swift Dotnet Bindings using .NET 10's native Swift interop via the SwiftBindings SDK.
License
The bindings are MIT licensed. FamilyControls is part of the Apple SDK; refer to Apple's licensing for the underlying framework.
Changes from Previous Version
Adoption Assessment
Assess this package against its supported frameworks, license, maintenance signals and dependency graph before making it a project standard.
Related Guides & Workflows
Learn how to evaluate, integrate, or audit this package in your .NET project.