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.
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With