Change the Assistive Access passcode on iPhone
You can change the passcode you use to enter and exit Assistive Access on iPhone, or if you forget the passcode, you can use your Apple ID to exit and reset it.
Change the Assistive Access passcode
Exit Assistive Access if it’s active, then go to Settings > Accessibility > Assistive Access.
Tap Passcode Settings, tap Change Assistive Access Passcode, then enter a new passcode.
You can set an Apple ID that you can use to exit Assistive Access and reset the Assistive Access passcode if you forget it. Tap Set Recovery Apple ID, then enter your Apple ID and password. (You can skip this step if you don’t have an Apple ID.)
If you can’t exit Assistive Access
If you set up passcode recovery when you set the Assistive Access passcode, if you forget it, you can use your Apple ID to exit Assistive Access and reset the passcode.
Triple-click the side button (on an iPhone with Face ID) or the Home button (on other iPhone models), tap Exit Assistive Access, then tap “Forgot Assistive Access passcode?”
Enter your Apple ID and password, then tap “Forgot password?” to exit Assistive Access.
Reset the Assistive Access passcode in the Settings app . See Change the Assistive Access passcode above.
The device passcode is the numerical code used to unlock iPhone. If you need help with the device passcode, see the Apple Support article If you forgot your iPhone passcode.