Latest 2.1
Homepage https://github.com/ChinaHackers/CustomKeyboard
License MIT
Platforms ios 11.2
Frameworks UIKit
Authors


Swift &4.0

Swift compatible
CocoaPods compatible


https://github.com/ChinaHackers/Customkeyboard/blob/master/LICENSE

Twitter Follow

What is Customkeyboard?

Customkeyboard is a simple and fast framework for custom digital keyboards. There’s always a keyboard for you.

Screencast from our Demo

Requirements


  • iOS 11.2
  • Xcode 9.2
  • Swift 4.0.2+

Installation

CocoaPods is a dependency manager for Cocoa projects. You can install it with the following command:

$ gem install cocoapods

Just add the Customkeyboard folder to your project.

or use CocoaPods with Podfile:

pod 'Customkeyboard'

Swift 4.0.3:


platform :ios, '11.2'
target '<Your Target Name>' do
use_frameworks!
pod 'Customkeyboard'
end

Then, run the following command:

$ pod install

Example:

import UIKit
import Customkeyboard

class ViewController: UIViewController {

    override func viewDidLoad() {
        super.viewDidLoad()

        view.backgroundColor = UIColor.gray
        example()
    }

    /// 例子
    private func example() {
        /// 文本框
        let textField = UITextField(frame: CGRect(x: 100, y: 120, width: 200, height: 35))
        textField.backgroundColor = UIColor.white
        view.addSubview(textField)

        let keyboard = CustomKeyboard(view)
        keyboard.style = .number
        keyboard.customDoneButton(title: "确定", titleColor: .white, theme: .blue, target: self, callback: nil)
        textField.inputView = keyboard
        textField.becomeFirstResponder()
    }
}

Latest podspec

{
    "name": "Customkeyboard",
    "version": "2.1",
    "summary": "A simple and fast realization of a custom keyboard.",
    "description": "A simple and fast realization of a custom digital keyboard. There is always a keyboard for you.",
    "homepage": "https://github.com/ChinaHackers/CustomKeyboard",
    "screenshots": "https://github.com/ChinaHackers/Customkeyboard/raw/master/Screencast/Screencast.gif",
    "license": "MIT",
    "authors": {
        "ChinaHackers": "[email protected]"
    },
    "platforms": {
        "ios": "11.2"
    },
    "source": {
        "git": "https://github.com/ChinaHackers/CustomKeyboard.git",
        "tag": "2.1"
    },
    "source_files": [
        "Customkeyboard",
        "CustomKeyboard/**/*.{h,m,swift}"
    ],
    "exclude_files": "CustomKeyboard/Exclude",
    "resource_bundles": {
        "CustomKeyboard": [
            "CustomKeyboard/Resources/**/*.png"
        ]
    },
    "frameworks": "UIKit",
    "pushed_with_swift_version": "4.0"
}

Pin It on Pinterest

Share This