Skip to content
This repository has been archived by the owner on Jul 9, 2019. It is now read-only.

Latest commit

 

History

History
73 lines (47 loc) · 2.23 KB

README.md

File metadata and controls

73 lines (47 loc) · 2.23 KB

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, eyrefree@eyrefree.org

License

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