Coding⏱️ 2 min read📅 2026-06-03

How to Fix: How to show "Done" button on iOS number pad keyboard?

Show Done button on iOS number pad keyboard

Quick Answer: Use the `doneButton` parameter in the `numberPadKeyboardType` initializer to display a "Done" button.

There is no "Done" button on the .numberPad Keyboard Type. When a user finishes entering numeric information in a text field, how can I make the number pad disappear?

I could get a "Done" button by using the default keyboard, but then users would have to switch to the numeric keys in order to input numbers. Is there a way to show a "Done" button on the number pad?

✗ Common Causes

  • There is no built-in way to add a "Done" button to the .numberPad Keyboard Type.

✀ How to Resolve This Issue

Method 1: Adding a Custom Button

  1. Step 1: Use the returnKeyType property to display a custom return key.

Method 2: Using a Third-Party Library

  1. Step 1: Import a third-party library that provides a custom keyboard with a "Done" button.

✀ Final Words

By using one of these methods, you can add a "Done" button to the .numberPad Keyboard Type and provide a better user experience.

Did this fix your problem?

If not, try searching for specific error codes.

🔍 Search Error Database

❓ Frequently Asked Questions