All Projects → podkovyrin → Keyboardy

podkovyrin / Keyboardy

Licence: mit
UIViewController extension for convenient keyboard management.

Programming Languages

swift
15916 projects

Projects that are alternatives of or similar to Keyboardy

Swipeselection
An improvement to iOS's text editing that allows you to move the cursor and select text using gestures on the keyboard itself.
Stars: ✭ 97 (-14.16%)
Mutual labels:  keyboard
Kll
KLL Compiler
Stars: ✭ 105 (-7.08%)
Mutual labels:  keyboard
Tkkeyboardcontrol
TKKeyboardControl adds keyboard awareness and scrolling dismissal (like iMessages app) to any view with only 1 line of code for Swift.
Stars: ✭ 110 (-2.65%)
Mutual labels:  keyboard
Lot60 Ble Keyboard
A 60% bluetooth keyboard (Hardware)
Stars: ✭ 100 (-11.5%)
Mutual labels:  keyboard
Keyboardavoider
The missing interactive keyboard in SwiftUI for iOS
Stars: ✭ 105 (-7.08%)
Mutual labels:  keyboard
React Native Keyboard Spacer
Plug and play react-native keyboard spacer view.
Stars: ✭ 1,475 (+1205.31%)
Mutual labels:  keyboard
Minikbd
Stars: ✭ 97 (-14.16%)
Mutual labels:  keyboard
Commute Deck
A computer built into a mechanical keyboard.
Stars: ✭ 112 (-0.88%)
Mutual labels:  keyboard
Hyperapp Fx
Effects for use with Hyperapp
Stars: ✭ 105 (-7.08%)
Mutual labels:  keyboard
G213colors
A Python script to change the key colors on a Logitech G213 Prodigy Gaming Keyboard
Stars: ✭ 110 (-2.65%)
Mutual labels:  keyboard
Lhskeyboardadjusting
An easy-to-use Objective-C protocol that automatically resizes / adjusts views when a keyboard appears on iOS.
Stars: ✭ 101 (-10.62%)
Mutual labels:  keyboard
Ally.js
JavaScript library to help modern web applications with accessibility concerns
Stars: ✭ 1,447 (+1180.53%)
Mutual labels:  keyboard
Android Keyboard
Android Keyboard with 180+ dictionaries. Support swipe input (sliding input), Emoji keyboard, AI predictions, dictionaries downloading, and keyboard themes.
Stars: ✭ 108 (-4.42%)
Mutual labels:  keyboard
Digitalkeyboard
手动实现简单的身份证数字键盘
Stars: ✭ 99 (-12.39%)
Mutual labels:  keyboard
Keyboard
⌨ Toward a more useful keyboard
Stars: ✭ 1,522 (+1246.9%)
Mutual labels:  keyboard
React Native Dismiss Keyboard
A simple way to dismiss the keyboard programmatically in a react native application
Stars: ✭ 97 (-14.16%)
Mutual labels:  keyboard
Karabiner Driverkit Virtualhiddevice
Stars: ✭ 108 (-4.42%)
Mutual labels:  keyboard
Norman
Norman keyboard layout - alternative to QWERTY for touch typing in English
Stars: ✭ 112 (-0.88%)
Mutual labels:  keyboard
Armenian Phonetic
Armenian phonetic keyboard layout for Mac OSX. Հայերեն ֆոնետիկ ստեղնաշար Mac OSX-ի համար։
Stars: ✭ 110 (-2.65%)
Mutual labels:  keyboard
Pi As Keyboard
Make your Raspberry act as a Keyboard
Stars: ✭ 109 (-3.54%)
Mutual labels:  keyboard

Keyboardy

Version Carthage Compatible Accio supported License Platform

Description

Keyboardy extends UIViewController with few simple methods and provides delegate for handling keyboard appearance notifications.

  • Keyboardy is just wrapper on UIKeyboardWillShowNotification and UIKeyboardWillHideNotification notifications.
  • Supports both AutoLayout and frame-based animations.
  • Swift implementation.
  • Without any hacks like method swizzling and magic numbers (ex., curve << 16).
Keyboardy Demo GIF

Usage

  • Import Keyboardy module
import Keyboardy
  • Register for keyboard notifications
override func viewWillAppear(_ animated: Bool) {
    super.viewWillAppear(animated)

    registerForKeyboardNotifications(self)
}
  • Unregister from keyboard notifications
override func viewWillDisappear(_ animated: Bool) {
    super.viewWillDisappear(animated)

    unregisterFromKeyboardNotifications()
}
  • Implement KeyboardStateDelegate
extension ViewController: KeyboardStateDelegate {

    func keyboardWillTransition(_ state: KeyboardState) {
        // keyboard will show or hide
    }

    func keyboardTransitionAnimation(_ state: KeyboardState) {
        switch state {
        case .activeWithHeight(let height):
            textFieldContainerBottomConstraint.constant = height
        case .hidden:
            textFieldContainerBottomConstraint.constant = 0.0
        }

        view.layoutIfNeeded()
    }

    func keyboardDidTransition(_ state: KeyboardState) {
        // keyboard animation finished
    }
}

Example

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

Requirements

Swift 5, iOS 8

Installation via CocoaPods

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

pod "Keyboardy"

Installation via Carthage

Carthage is a decentralized dependency manager that automates the process of adding frameworks to your Cocoa application.

You can install Carthage with Homebrew using the following command:

$ brew update
$ brew install carthage

To integrate Keyboardy into your Xcode project using Carthage, specify it in your Cartfile:

github "podkovyrin/Keyboardy"

Installation via Accio

  1. Add the following to your Package.swift:

    .package(url: "https://github.com/podkovyrin/Keyboardy.git", .upToNextMajor(from: "0.2.7")),
    
  2. Next, add Keyboardy to your App targets dependencies like so:

    .target(name: "App", dependencies: ["Keyboardy"]),
    
  3. Then run accio update.

Author

Andrew Podkovyrin, [email protected]

License

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

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].