Latest 3.0.1
Homepage https://github.com/GriffinSchneider/MoveViewUpForKeyboardKit
License MIT
Platforms ios 9.0, requires ARC
Authors

MoveViewUpForKeyboardKit Version Build Status

:fire: The eternal battle between iOS developers and the keyboard rages on, and the
keyboard seems poised for victory. :fire:

Just Google ‘iOS move view for keyboard’ and gaze upon the desolation. The
top answers don’t call convertRect, and the keyboard easily destroys them
all unless their view’s bottom happens to be directly at the bottom of the
screen. Apple’s documentation doesn’t even mention convertRect, and so it
too is overrun by the dread keyboard. Many solutions fail miserably under
AutoLayout, and are thusly rendered useless. :skull::skull::skull:

star2::sparkles:But hark! A bright light appears suddenly upon the horizon, and
MoveViewUpForKeyboardKit rides fiercely upon a white stallion to join the fray!

sparkles::star2:

MoveViewUpForKeyboardKit brutally provides a view that will automatically position
itself at the bottom of its superview or the top of the keyboard, whichever is higher.
With this ultimate weapon against it, the keyboard knows that it cannot prevail. ⚔

🗡 In desperation, the keyboard animates itself with undocumented animation curves, but
MoveViewUpForKeyboardKit parries by matching them perfectly! The keyboard falls to its knees,
and MoveViewUpForKeyboardKit prepares its coup de grâce. 🗡

MoveViewUpForKeyboardKitmercilessly handles the case where the keyboard is
already visible, and keys fly everywhere as the dread keyboard explodes in a ball
of furious hellfire! :fire::boom::fire::boom::fire:

Installation

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

pod MoveViewUpForKeyboardKit

Usage

MoveViewUpForKeyboardKit provides a single class, MVUFKView. All you need to do
is put a view of this class in the view hierarchy and set the ‘enabled’ property.
MVUFKViews will automatically do everything required to keep themselves above
the keyboard with correct animation. If the keyboard is not visible, or if it doesn’t
overlap your view, then the MVUFKView will position itself (using constraints) at
the bottom of its superview. Once you have a MVUFKView, you can simply use layout
constraints to adapt your layout for the keyboard.

Latest podspec

{
    "name": "MoveViewUpForKeyboardKit",
    "version": "3.0.1",
    "summary": "MVUFKKit provides a view that will automatically move itself up for the keyboard.",
    "description": "The eternal battle between iOS developers and the keyboard rages on, and thenkeyboard seems poised for victory.nnJust Google 'iOS move view for keyboard' and gaze upon the desolation. Thentop answers don't call `convertRect`, and the keyboard easily destroys themnall unless their view's bottom happens to be directly at the bottom of thenscreen. Apple's documentation doesn't even mention 'convertRect', and so itntoo is overrun by the dread keyboard. Many solutions fail miserably undernAutoLayout, and are thusly rendered useless.nnBut hark! A bright light appears suddenly upon the horizon, andnMoveViewUpForKeyboardKit rides fiercely upon a white stallion to join the fray!nnMoveViewUpForKeyboardKit brutally provides a view that will automatically positionnitself at the bottom of its superview or the top of the keyboard, whichever is higher.nWith this ultimate weapon against it, the keyboard knows it cannot prevail. Inndesperation, the keyboard animates itself with undocumented animation curves, butnMoveViewUpForKeyboardKit parrys by matching them perfectly! The keybaord is off balance,nand MoveViewUpForKeyboardKit prepares it's coup de gru00e2ce. MoveViewUpForKeyboardKitnmercilessly handles the case where the keyboard is _already visible_, and keys flyneverywhere as the dread keyboard explodes in a ball of furious hellfire.",
    "homepage": "https://github.com/GriffinSchneider/MoveViewUpForKeyboardKit",
    "license": {
        "type": "MIT",
        "file": "LICENSE.txt"
    },
    "authors": {
        "Griffin Schneider": "[email protected]"
    },
    "source": {
        "git": "https://github.com/GriffinSchneider/MoveViewUpForKeyboardKit.git",
        "tag": "3.0.1"
    },
    "ios": {
        "frameworks": [
            "Foundation",
            "UIKit"
        ]
    },
    "requires_arc": true,
    "platforms": {
        "ios": "9.0"
    },
    "source_files": "MoveViewUpForKeyboardKit/*.{h,m}"
}

Pin It on Pinterest

Share This