Contents

UIScene.SystemProtectionManager

A class that represents the status of system protection for the scene.

Declaration

@MainActor class SystemProtectionManager

Overview

Use this class to determine if the system protects a scene, such as by locking the app and requiring authentication with Face ID or Touch ID. You may want to disable your own app’s privacy shielding if the system already requires authentication.

The following example shows how a scene can use the manager’s isUserAuthenticationEnabled property to decide whether to provide its own UI shielding. When the scene becomes active, the app shows an authentication challenge if the system doesn’t already provide protection. When the scene resigns the active role, the app provides its own shielding only if the system isn’t already doing so.

Topics

Inspecting protection state

See Also

Working with system protection manager