To edit the Auto-Lock setting on your iPhone, follow these steps:
- Open the Settings app.
- Scroll down and tap on Display & Brightness.
- Scroll down again and tap on Auto-Lock.
- Choose your preferred duration for the screen to automatically lock (e.g., 30 Seconds, 1 Minute, 2 Minutes, 3 Minutes, 4 Minutes, 5 Minutes, or Never).