Latest 0.0.5
Homepage https://github.com/1amageek/OnTheKeyboard
License MIT
Platforms ios 10.0, requires ARC
Dependencies Toolbar
Authors

Toolbar on the keyboard

Usage

class ViewController: UIViewController , OnTheKeyboard {

    var keyboardObservers: [Any] = []

    var toolBar: Toolbar = Toolbar()

    var toolbarBottomConstraint: NSLayoutConstraint?

    private(set) lazy var textView: UITextView = {
        let textView: UITextView = UITextView(frame: .zero)
        return textView
    }()

    override func loadView() {
        super.loadView()
        showToolBar(view)
        self.toolBar.setItems([ToolbarItem(customView: self.textView)], animated: false)
    }

    override func viewDidAppear(_ animated: Bool) {
        super.viewDidAppear(animated)
        addKeyboardObservers()
    }

    override func viewDidDisappear(_ animated: Bool) {
        super.viewDidDisappear(animated)
        removeKeyboardObservers()
    }
}

Latest podspec

{
    "name": "OnTheKeyboard",
    "version": "0.0.5",
    "summary": "Toolbar on the keyboard",
    "description": "OnTheKeyboard provides a toolbar located above the keyboard.",
    "homepage": "https://github.com/1amageek/OnTheKeyboard",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "1amageek": "[email protected]"
    },
    "social_media_url": "http://twitter.com/1amageek",
    "platforms": {
        "ios": "10.0"
    },
    "source": {
        "git": "https://github.com/1amageek/OnTheKeyboard.git",
        "tag": "0.0.5"
    },
    "source_files": [
        "OnTheKeyboard",
        "OnTheKeyboard/**/*.swift"
    ],
    "requires_arc": true,
    "dependencies": {
        "Toolbar": []
    }
}

Pin It on Pinterest

Share This