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

EFPrefix/EFKeyboardToolBar

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Mar 31, 2019
f161119 · Mar 31, 2019

History

23 Commits
Sep 11, 2018
Mar 31, 2019
Mar 31, 2019
Sep 10, 2018
Mar 31, 2019
Mar 31, 2019
Mar 31, 2019
Nov 6, 2018
Nov 6, 2018
Mar 31, 2019
Nov 6, 2018
Sep 10, 2018
Mar 31, 2019
Mar 31, 2019
Sep 10, 2018
Sep 12, 2018

Repository files navigation

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.