Milkglass
Get the app

MilkglassPhoto privacy guides

What to do if someone knows the passcode to your iPhone

Open Settings › Face ID & Passcode (or Touch ID & Passcode), tap Change Passcode, set a new code, and then tap Expire Previous Passcode Now. On iOS 17 or later, your old passcode can still reset the new one for 72 hours unless you expire it right away. Apple’s guide to expiring your previous passcode

By Paul Bădărău, maker of Milkglass. Instructions checked on 30 November 2026.

Steps to change and expire your iPhone passcode

Change the passcode first, verify you remember the new one, and then remove the 72-hour grace period.

  1. Open Settings on your iPhone and tap Face ID & Passcode (or Touch ID & Passcode).
  2. Enter your current passcode, then tap Change Passcode.
  3. Tap Passcode Options if you want a longer custom numeric or alphanumeric code, then enter and confirm the new passcode.
  4. Lock your iPhone with the side button and unlock it once with the new passcode to make sure you typed what you meant.
  5. Return to Settings › Face ID & Passcode, enter your new passcode, and tap Expire Previous Passcode Now so the old code cannot be used during the 72-hour window.

What changing your passcode affects for your photos

Changing and expiring your device passcode locks the iPhone itself and blocks access to the Hidden and Recently Deleted albums, which use your device passcode as their fallback. Your photos and iCloud Photos stay intact.

Changing your iPhone passcode does not remove any extra Face ID appearance you enrolled, and it does not change a separate pattern or password you set inside another app or in locked Notes.

When someone could still reach your photos after a passcode change

Common questions about iPhone passcode changes and photo privacy

Does changing my iPhone passcode lock the Hidden album with the new code?

Yes. The Hidden and Recently Deleted albums unlock with Face ID, Touch ID, or your current iPhone passcode. Once you change and expire the old passcode, the old code no longer opens Hidden. Read how Apple Photos locks work on iPhone.

Should I also check if another face or fingerprint is enrolled?

Yes. If someone knew your passcode, they could have added an alternate appearance in Settings › Face ID & Passcode or another fingerprint in Touch ID. Review those settings right after changing your code.

How do I keep private photos behind a pattern separate from my iPhone passcode?

In Milkglass, each Drawer opens with its own pattern rather than your iPhone passcode, and the app opens to nine dots with no Drawer list or count.

More iPhone lock and device access guides

Check how to lock photos on iPhone, how to protect photos if your iPhone is stolen, how to remove a trusted iPhone from your Apple Account, how to stop iPhone sharing your contact photo automatically, or how to shorten iPhone Auto-Lock while viewing photos.