Easily secure your iPhone by activating a lock code to unlock it. Follow these steps to learn how to enable a lock code.
Tap Settings.
Tap Face ID & Passcode.
Tap Turn Passcode On.
Enter a lock code.
Re-enter the lock code.
Now that you have set a lock code, your iPhone will show you a lock screen when unlocking your phone where you will need to enter the code.