Find "Face ID & Passcode"
Press Face ID & Passcode.
Turn on use of phone lock code
Press Turn Passcode On and key in a phone lock code of your own choice twice.
Turn deletion of data on or off
Press the indicator next to "Erase Data" to turn the function on or off.
If you turn on the function, press Enable.
Turn off use of phone lock code
Press Turn Passcode Off and key in the phone lock code.
Return to the home screen
Slide your finger upwards starting from the bottom of the screen to return to the home screen.