In this tutorial, you will learn how to:
• Set up a secure screen lock with a passcode
• Set up a secure screen lock with FaceID
• Erase data
• Adjust screen lock time
• Lock device
• Unlock device
1. From the home screen, select the  Settings app.
Note: If you turn Passcode on, you’ll be asked to enter your passcode when you turn on or restart your device, unlock your device, update your software, or erase your device.
2. Scroll to and select Touch ID & Passcode.
3. Select Turn Passcode On.
Note: If passcode settings are unavailable, gray, or dimmed and you can't change these settings, it might be because you're using a configuration profile that requires a passcode. This is common with business or education devices. Contact your IT administrator for more information.
4. Enter your desired passcode, then re-enter your desired passcode to confirm.
Note: If prompted, enter your Apple ID password to confirm. To turn passcode off, from the Touch ID & Passcode screen, scroll to and select Turn Passcode Off.  You will be prompted to enter your current passcode to confirm. To change your passcode, scroll to and select Change Passcode then follow the prompts. Learn more from the Apple support article If you forgot the passcode for your iPhone or your device is disabled.
1. To set up Touch ID, from the Touch ID & Passcode screen select Add a Fingerprint and follow the prompts.
2. From the Touch ID & Passcode screen, select the switch next to the desired Touch ID feature to turn it on or off.
3. To allow access to features when iPhone is locked, scroll down to ALLOW ACCESS WHEN LOCKED and select the switch next to the desired feature(s).
Â
Select the Erase Data switch. After ten failed passcode attempts, all settings will be reset, and all your information and media will be erased by removing the encryption key to the data.
Note: When prompted, select Enable.
From the home screen, select the  Settings app > scroll to and select Display & Brightness > scroll to and select Auto-Lock > select the desired option.
Press the Sleep/Wake button to lock the device.
Press the Sleep/Wake button, then press the Home button. Enter your passcode to unlock the device.
Note: If using Touch ID, place your finger on the Home button to unlock the device.