---
title: advanceToNextInputMode()
framework: uikit
role: symbol
role_heading: Instance Method
path: uikit/uiinputviewcontroller/advancetonextinputmode()
---

# advanceToNextInputMode()

Switches to the next keyboard in the list of user-enabled keyboards.

## Declaration

```swift
func advanceToNextInputMode()
```

## Discussion

Discussion When the user taps the Globe or a custom “next keyboard” key, the system picks the appropriate “next” keyboard from the list of user-enabled keyboards. To determine whether your custom keyboard needs to display a “next keyboard” key, check the needsInputModeSwitchKey property. If the value of the property is true, your keyboard should include this key.

## See Also

### Controlling a custom keyboard

- [dismissKeyboard()](uikit/uiinputviewcontroller/dismisskeyboard().md)
- [handleInputModeList(from:with:)](uikit/uiinputviewcontroller/handleinputmodelist(from:with:).md)
