Skip to content

chrisamanse/iOS-KeyboardAccessoryToolbar

Repository files navigation

KeyboardAccessoryToolbar

A simple keyboard accessory toolbar for iOS implemented in Swift.

Installation

Simply add KeyboardAccessoryToolbar.swift in your project.

Usage

extension ViewController: UITextFieldDelegate {
    func textFieldShouldBeginEditing(textField: UITextField) -> Bool {
        // Set to specific text field
        if textField == self.textField {
            // Set toolbar's current view to active text field
            // This will also set the view's input accessory view to accessory toolbar
            accessoryToolbar.currentView = textField
        }

        return true
    }
}  

License

Copyright (c) 2015 Joe Christopher Paul Amanse. This software is distributed under the MIT License

About

A simple keyboard accessory toolbar for iOS implemented in Swift.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages