Latest 1.0.0
Homepage https://github.com/deniskakacka/DKExternalKeyboard
License MIT
Platforms ios 9.0
Authors

Version
Platform

Example

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

Installation

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

pod 'DKExternalKeyboard'

Usage

import DKExternalKeyboard
private lazy var keyboardView: DKExternalKeyboardView = {
    let keyboardView = DKExternalKeyboardView()
    keyboardView.keyboard.setDelegate(self)

    return keyboardView
}()
extension ViewController: DKExternalKeyboardDelegate {
    func didTapSearch(query: String?) {
        keyboardView.keyboard.hide()
    }
}
extension ViewController: UITextFieldDelegate {
    func textFieldDidBeginEditing(_ textField: UITextField) {
        keyboardView.keyboard.show(for: textField, on: view)
    }

    func textFieldShouldBeginEditing(_ textField: UITextField) -> Bool {
        let emptyViewForSystemKeyboard = UIView(frame: .zero)
        textField.inputView = emptyViewForSystemKeyboard

        return true
    }
}

Author

Denis Kakačka, [email protected]

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

License

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

Latest podspec

{
    "name": "DKExternalKeyboard",
    "version": "1.0.0",
    "summary": "Keyboard for external displays.",
    "swift_version": "4.2",
    "description": "This pod allows user to show keyboard on external displays, where system keyboard cannot be showed.",
    "homepage": "https://github.com/deniskakacka/DKExternalKeyboard",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "deniskakacka": "[email protected]"
    },
    "source": {
        "git": "https://github.com/deniskakacka/DKExternalKeyboard.git",
        "tag": "1.0.0"
    },
    "platforms": {
        "ios": "9.0"
    },
    "source_files": "DKExternalKeyboard/Classes/**/*",
    "resource_bundles": {
        "DKExternalKeyboard": [
            "DKExternalKeyboard/Assets/**/*.{xib,pdf,xcassets}"
        ]
    }
}

Pin It on Pinterest

Share This