A keyboard toolBar in Swift, inspired by KeyboardToolBar.
| Default | Custom |
|---|---|
![]() |
![]() |
To run the example project, clone the repo, and run pod install from the Example directory first.
| Version | Needs |
|---|---|
| 1.x | Xcode 9.0+ Swift 4.0+ iOS 8.0+ |
| 5.x | Xcode 10.2+ Swift 5.0+ iOS 8.0+ |
EFKeyboardToolBar is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod 'EFKeyboardToolBar'In your AppDelegate.swift:
import EFKeyboardToolBarthen:
EFKeyboardToolBar.enableEFKeyboardToolBar()Then your UITextField, UITextView, UISearchBar will have toolbar in keyboard.
White your own class follow the EFKeyboardToolBarContentViewProtocol protocol, and use the following code to set it:
let newConfit = EFKeyboardToolBarConfig()
newConfit.toolBarHeight = 60
newConfit.toolBarContentView = EFKeyboardToolBarCustomContentView()
EFKeyboardToolBar.setConfig(config: newConfit)You can see the example code for more details.
EyreFree, eyrefree@eyrefree.org
EFKeyboardToolBar is available under the MIT license. See the LICENSE file for more info.

