spiegel-keyman/ios/docs/engine/TextField/index.md
2024-10-31 10:13:00 +07:00

31 lines
589 B
Markdown

---
title: TextField class
---
## Summary
The TextField class provides a UITextField to use with Keyman Engine.
## Syntax
```swift
TextField.methodName()
```
## Description
The viewController should be set to main view controller to enable keyboard picker.
## Methods
[`dismissKeyboard()`](dismissKeyboard)
: dismisses the keyboard if this textview is the first responder.
`inputView`
: gets or sets the input view.
[`setKeymanDelegate()`](setKeymanDelegate)
: sets the TextFieldDelegate instead of the normal UITextFieldDelegate.
`text`
: gets or sets the text string.