Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there any public API to detect Lockdown Mode in iOS 16(beta 3)?

I was testing the lockdown mode in iOS 16 beta 3 and would like to know whether we can detect the lockdown mode status using any public API that Apple provides.

I really appreciate any help you can provide.

like image 376
CodeSteger Avatar asked Oct 26 '25 10:10

CodeSteger


1 Answers

When Lockdown mode is enabled, LDMGlobalEnabled default is set in NSGlobalDomain. You can query this with

let isLockdownModeEnabled = (UserDefaults.standard.object(forKey: "LDMGlobalEnabled") as? Bool) ?? false
like image 164
JustSomeGuy Avatar answered Oct 28 '25 00:10

JustSomeGuy