All Projects → freshOS → Keyboardlayoutguide

freshOS / Keyboardlayoutguide

Licence: mit
⌨️ Manage iOS keyboard with Apple's missing KeyboardLayoutGuide

Programming Languages

swift
15916 projects

Projects that are alternatives of or similar to Keyboardlayoutguide

GKey
German Keyboard Layout for TempleOS
Stars: ✭ 20 (-98.1%)
Mutual labels:  keyboard, layout, keyboard-layout
Vue Touch Keyboard
Virtual keyboard component for Vue.js 2.x. Designed to Raspberry Pi Touch Display
Stars: ✭ 255 (-75.81%)
Mutual labels:  keyboard, keyboard-layout
EZAnchor
An easier and faster way to code Autolayout
Stars: ✭ 25 (-97.63%)
Mutual labels:  layout, autolayout
Snapkit
A Swift Autolayout DSL for iOS & OS X
Stars: ✭ 18,091 (+1616.41%)
Mutual labels:  layout, autolayout
Juni
12 Keys Chorded keyboard layout
Stars: ✭ 51 (-95.16%)
Mutual labels:  keyboard, keyboard-layout
kalamine
Keyboard Layout Maker
Stars: ✭ 47 (-95.54%)
Mutual labels:  keyboard, keyboard-layout
Layoutframeworkbenchmark
Benchmark the performances of various Swift layout frameworks (autolayout, UIStackView, PinLayout, LayoutKit, FlexLayout, Yoga, ...)
Stars: ✭ 316 (-70.02%)
Mutual labels:  layout, autolayout
keymacs
Ergonomic keyboard layout for nonergonomic keyboards.
Stars: ✭ 22 (-97.91%)
Mutual labels:  keyboard, keyboard-layout
Autoinch
优雅的iPhone全尺寸/等比例精准适配工具
Stars: ✭ 395 (-62.52%)
Mutual labels:  layout, autolayout
Typist
Swift UIKit keyboard manager for iOS apps.
Stars: ✭ 1,011 (-4.08%)
Mutual labels:  keyboard, keyboard-layout
Uicollectionview Layouts Kit
📐 A set of custom layouts for UICollectionView with examples [Swift 5.3, iOS 12].
Stars: ✭ 410 (-61.1%)
Mutual labels:  layout, autolayout
VanillaConstraints
🍦 Simplified and chainable AutoLayout constraints for iOS.
Stars: ✭ 42 (-96.02%)
Mutual labels:  layout, autolayout
Shortcutmapper
A visual keyboard shortcuts explorer for popular applications.
Stars: ✭ 657 (-37.67%)
Mutual labels:  keyboard, keyboard-layout
wwlayout
Swifty DSL for programmatic Auto Layout in iOS
Stars: ✭ 46 (-95.64%)
Mutual labels:  layout, autolayout
CustomKeyboard
A simple and fast implementation of a custom numeric keypad. There is always a keyboard for you.
Stars: ✭ 20 (-98.1%)
Mutual labels:  keyboard, keyboard-layout
Stevia
🍃 Concise Autolayout code
Stars: ✭ 3,182 (+201.9%)
Mutual labels:  layout, autolayout
keyboard-layouter
Footprint auto placement plugin for keyboard layout
Stars: ✭ 73 (-93.07%)
Mutual labels:  keyboard, keyboard-layout
keyd
A key remapping daemon for linux.
Stars: ✭ 687 (-34.82%)
Mutual labels:  keyboard, keyboard-layout
Easyswiftlayout
Lightweight Swift framework for Apple's Auto-Layout
Stars: ✭ 345 (-67.27%)
Mutual labels:  layout, autolayout
Mylinearlayout
MyLayout is a powerful iOS UI framework implemented by Objective-C. It integrates the functions with Android Layout,iOS AutoLayout,SizeClass, HTML CSS float and flexbox and bootstrap. So you can use LinearLayout,RelativeLayout,FrameLayout,TableLayout,FlowLayout,FloatLayout,PathLayout,GridLayout,LayoutSizeClass to build your App 自动布局 UIView UITab…
Stars: ✭ 4,152 (+293.93%)
Mutual labels:  layout, autolayout

⌨️ KeyboardLayoutGuide

Apple's missing KeyboardLayoutGuide

Language: Swift 5 Platform: iOS 9+ SPM compatible Carthage compatible CocoaPods compatible Build Status codebeat badge License: MIT GitHub tag

  • [x] No Subclassing / Protocol inheritance / obscure overrides
  • [x] No more keyboard notification handling
  • [x] UIKit Friendly
  • [x] Takes safeArea into account
  • [x] Only animates if view is fully on screen

How to use it

Simply constrain your views to the KeyboardLayoutGuide's top anchor the way you would do natively:

override func viewDidLoad() {
    super.viewDidLoad()

    // Pin your button to the keyboard
    button.bottomAnchor.constraint(equalTo: view.keyboardLayoutGuide.topAnchor).isActive = true
}

Bonus: if you're using Stevia, this gets even more concise \o/

button.Bottom == view.keyboardLayoutGuide.Top

If you add your view in Interface Builder, don't forget to enable the "Remove at build time" checkbox for the bottom constraint:

Safe Area

By default, KeyboardLayoutGuide will align your item with the bottom safe area. This is a behaviour that can be opt out by using keyboardLayoutGuideNoSafeArea instead of keyboardLayoutGuide.

Installation

The Swift Package Manager (SPM) is now the official way to install KeyboardLayoutGuide. The other package managers are now deprecated as of 1.7.0 and won't be supported in future versions.

Swift Package Manager

Xcode > File > Swift Packages > Add Package Dependency... > Paste https://github.com/freshOS/KeyboardLayoutGuide

CocoaPods - Deprecated

To install KeyboardLayoutGuide via CocoaPods, add the following line to your Podfile:

target 'MyAppName' do
  pod 'Keyboard+LayoutGuide'
  use_frameworks!
end

Carthage - Deprecated

To install KeyboardLayoutGuide via Carthage, add the following line to your Cartfile:

github "freshos/KeyboardLayoutGuide"

Manually

Just add Keyboard+LayoutGuide.swift to your Xcode project.

License

KeyboardLayoutGuide 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].