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.
import TextFieldsTraversalController
let textFieldsTraversalController = TextFieldsTraversalController(textFields: textFields)
To run the example project, clone the repo, and run pod install
from the Example directory first.
textFieldsTraversalController.accessoryView.orientation = .horizontal
textFieldsTraversalController.accessoryView.orientation = .vertical
- iOS 9.0+ and Xcode 9.0+
- Swift 4.0+
TextFieldsTraversalController is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod 'TextFieldsTraversalController'
TextFieldsTraversalController is available under the MIT license. See the LICENSE file for more info.