https://github.com/danielinoa/textfieldstraversalcontroller
A controller that manages focus and traversal for a collection of textfields.
https://github.com/danielinoa/textfieldstraversalcontroller
controller form inputaccessoryview textfields traversal
Last synced: 7 months ago
JSON representation
A controller that manages focus and traversal for a collection of textfields.
- Host: GitHub
- URL: https://github.com/danielinoa/textfieldstraversalcontroller
- Owner: danielinoa
- License: mit
- Created: 2017-10-15T08:06:31.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2019-02-18T05:58:59.000Z (about 7 years ago)
- Last Synced: 2025-08-23T21:19:02.229Z (7 months ago)
- Topics: controller, form, inputaccessoryview, textfields, traversal
- Language: Swift
- Homepage:
- Size: 1.04 MB
- Stars: 16
- Watchers: 4
- Forks: 7
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
TextFieldsTraversalController
===========
A controller to manage the traversal of a collection of textfields.
This controller comes with a custom `inputAccessoryView` that mimics the one used by Safari when traversing through an HTML form.
[](https://travis-ci.org/danielinoa/TextFieldsTraversalController)
[](http://cocoapods.org/pods/TextFieldsTraversalController)
[](http://cocoapods.org/pods/TextFieldsTraversalController)
[](http://cocoapods.org/pods/TextFieldsTraversalController)

## Usage
`import TextFieldsTraversalController`
```swift
let textFieldsTraversalController = TextFieldsTraversalController(textFields: textFields)
```
To run the example project, clone the repo, and run `pod install` from the Example directory first.
## Customization
```
textFieldsTraversalController.accessoryView.orientation = .horizontal
```

```
textFieldsTraversalController.accessoryView.orientation = .vertical
```

## Requirements
* iOS 9.0+ and Xcode 9.0+
* Swift 4.0+
## Installation
TextFieldsTraversalController is available through [CocoaPods](http://cocoapods.org). To install
it, simply add the following line to your Podfile:
```swift
pod 'TextFieldsTraversalController'
```
## Author
* [Daniel Inoa](https://www.danielinoa.com)
## License
TextFieldsTraversalController is available under the MIT license. See the LICENSE file for more info.