I forgot my unlock code for my iPhone , I am logged into my MacBook Pro , how can I reset my cell phone passcode ?
how can I reset my unlock code ?
iPhone 14 Pro, iOS 17
how can I reset my unlock code ?
iPhone 14 Pro, iOS 17
Your data is not lost if you have a backup either on iCloud or iTunes.

If you see an iPhone or iPad unavailable message or "Security Lockout" screen
If you forgot your passcode, you can use your Apple ID and password to erase and reset your device without a computer.
Learn what to do if you see "[Device] unavailable" or "Security Lockout" on your iPhone or iPad.)

iPhone is disabled.
Following this process is the only way out if your iPhone is disabled. The steps given in this link will help you reset the passcode -> If you forgot the passcode for your iPhone, iPad, or iPod touch, or your ...

Regarding your data…
I forgot my unlock code for my iPhone , I am logged into my MacBook Pro , how can I reset my cell phone passcode ?