Even if you have forgotten your iPhone 18 passcode and cannot unlock it, it is possible to reset it without a passcode.
Phone Unavailable or Security Lockout? Learn how to use your old passcode within 72 hours, erase the device or restore it ...