An open API service indexing awesome lists of open source software.

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.

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.

[![CI Status](http://img.shields.io/travis/danielinoa/TextFieldsTraversalController.svg?style=flat)](https://travis-ci.org/danielinoa/TextFieldsTraversalController)
[![Version](https://img.shields.io/cocoapods/v/TextFieldsTraversalController.svg?style=flat)](http://cocoapods.org/pods/TextFieldsTraversalController)
[![License](https://img.shields.io/cocoapods/l/TextFieldsTraversalController.svg?style=flat)](http://cocoapods.org/pods/TextFieldsTraversalController)
[![Platform](https://img.shields.io/cocoapods/p/TextFieldsTraversalController.svg?style=flat)](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
```

![image](https://github.com/danielinoa/TextFieldsTraversalController/blob/master/Screenshots/horizontal.png)

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

![image](https://github.com/danielinoa/TextFieldsTraversalController/blob/master/Screenshots/vertical.png)

## 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.