Thanks for being a part of WWDC25!

How did we do? We’d love to know your thoughts on this year’s conference. Take the survey here

How to update the lock icon and text on the initial unlock Screen with SFAutorizationPluginView.

Step1. Update system.login.screensaver authorizationdb rule to use “authenticate-session-owner-or-admin”( to get old SFAutorizationPluginView at Lock Screen ). Here I will use my custom authorization plugin.

Step 2. Once the rule is in place, logout and login, now click on Apple icon and select “Lock Screen”.

Is there a way programmatically to update the Lock Icon and the test getting displayed on the first Unlock screen? When I write a custom authorisation plug-in, I am getting control of the text fields and any consecutive screen I add from there on. But all I want is to update the lock icon and text fields on 1st unlock display itself. Can you please suggest how I can achieve this? Here is the screenshot with marked areas I am looking control for.

Is there a way programmatically to update the Lock Icon and the test getting displayed on the first Unlock screen?

Not directly. As you’ve noticed, you SFAuthorizationPluginView subclass can provide a replacement for the user name and password fields but it doesn’t control any of the UI surrounding that.

The system sets the icon and prompt based on properties in the context (kAuthorizationEnvironmentPrompt and kAuthorizationEnvironmentIcon). So, you might able to change this indirectly by overriding those values from a mechanism that runs before you SFAuthorizationPluginView mechanism. I’ve not actually tried that though, so YMMV.

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

How to update the lock icon and text on the initial unlock Screen with SFAutorizationPluginView.
 
 
Q