In this tutorial, you will learn how to:
• Set up a secure screen lock with a passcode
• Set up a secure screen lock with Touch ID
• 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 Settings screen scroll to and select Touch ID & Passcode > enter your current passcode > scroll to and select Turn Passcode Off > select Turn off to confirm. If prompted, enter your Apple ID password, then select Turn Off. Enter your current passcode to confirm. To change your passcode, from the Face ID & Passcode screen 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.
Note: To add an alternate appearance, select Set Up an Alternate Appearance and follow the prompts to complete setup.
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).
Â
From the Touch ID & Passcode screen, 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 to confirm.
From the home screen, select the  Settings app > scroll to and select Display & Brightness > select Auto-Lock > desired option. Select Back when finished.
Press the Side button to lock the device.
Press the Side button, then swipe up from the bottom of the screen. Enter your passcode to unlock the device.