mirror of
https://github.com/keymanapp/keyman.git
synced 2026-08-06 00:45:32 +00:00
31 lines
589 B
Markdown
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.
|