mirror of
https://github.com/keymanapp/keyman.git
synced 2026-08-06 00:45:32 +00:00
26 lines
470 B
Markdown
26 lines
470 B
Markdown
---
|
|
title: TextView.dismissKeyboard()
|
|
---
|
|
|
|
## Summary
|
|
|
|
The **`dismissKeyboard()`** method dismisses the keyboard if this textview is the first responder.
|
|
|
|
## Syntax
|
|
|
|
```swift
|
|
TextView.dismissKeyboard()
|
|
```
|
|
|
|
## Description
|
|
|
|
Use this instead of *[resignFirstResponder]* as it also resigns the Keyman keyboard's responders.
|
|
|
|
## Example
|
|
|
|
### Using `dismissKeyboard()`
|
|
The following script illustrates the use of `dismissKeyboard()`:
|
|
|
|
```swift
|
|
TextView.dismissKeyboard()
|
|
```
|