Skip to content

SwiftyKit/SwiftyKeyboard

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SwiftyKeyboard

License Language

Overview

SwiftyKeyboard is an iOS customized enhanced keyboard. This keyboard view is intended to replace the default keyboard on iPhone/iPad for entering numerical values. As the default keyboard on iPad still shows all keys even for numerical entry modes, this keyboard only focuses on numeric keys.

And it supports customize the UI of keys, and the positions etc. In the other word, SwiftyKeyboard is a full customized numeric keyboard for iOS.

iPad ScreenShot:

enter image description here

iPhone ScreenShot:

enter image description here

Installation

CocoaPods

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

pod 'SwiftyKeyboard'

Manual

Drag 'n drop SwiftyTextView.swift into your project.

Usage

        let numbericKeyboard = SwiftyKeyboard(frame: CGRect.zero)
        yourTextField.inputView = numbericKeyboard  // yourTextField is the pre defined textField
        numbericKeyboard.keyInput = yourTextField
        numbericKeyboard.delegate = self
        numbericKeyboard.allowsDecimalPoint = true  // can set as true or false

Requirements

  • Swift 5.0+
  • iOS 10.0+

Contact & Contribute

  • Feel free to contact me with ideas or suggestions at swiftykit@gmail.com
  • Fork the project and make your own changes

License

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