Back in the day before Touch ID and Face ID came to iPhones, Apple relied on passcodes to protect your iPhone. This usually involves a series of numbers that only you would know that would prevent a stranger from unlocking your phone and accessing its contents. In a way, it’s like encrypting your iPhone until you unlock it.
For those who don’t use a passcode, you probably should. While you might argue that there’s nothing on there worth stealing, it’s always a good idea to protect your privacy. That being said, if you’re trying to improve the security on your phone, or maybe you have a passcode that you want to change, here’s what you need to do.
So now that your passcode has been set, what if someone got ahold of your iPhone and just keeps trying various combinations to unlock it? Chances are it would take them a very long time unless they know you and your password habits, but you can also set it so that your iPhone will automatically erase all your data once there are 10 failed attempts.
Note that the 10 attempts are set by Apple and cannot be changed, presumably to prevent people from setting too low a number and accidentally wiping their phones.
In case you think it’s too troublesome to use a passcode and you just want to be able to unlock your iPhone quickly and easily, you can always turn passcodes off. This is probably not recommended since it means that anyone can unlock your phone, but it’s your choice at the end of the day