EFKeyboardToolBar 5.0.0

EFKeyboardToolBar 5.0.0

Maintained by EyreFree.



EFKeyboardToolBar

CI Status Version License Platform

A keyboard toolBar in Swift, inspired by KeyboardToolBar.

中文介绍

Preview

Default Custom

Example

To run the example project, clone the repo, and run pod install from the Example directory first.

Requirements

Version Needs
1.x Xcode 9.0+
Swift 4.0+
iOS 8.0+
5.x Xcode 10.2+
Swift 5.0+
iOS 8.0+

Installation

EFKeyboardToolBar is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod 'EFKeyboardToolBar'

Use

In your AppDelegate.swift:

import EFKeyboardToolBar

then:

EFKeyboardToolBar.enableEFKeyboardToolBar()

Then your UITextField, UITextView, UISearchBar will have toolbar in keyboard.

Custom

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.

Author

EyreFree, [email protected]

License

EFKeyboardToolBar is available under the MIT license. See the LICENSE file for more info.