Swiftpack.co -  alphatroya/KeyboardManager as Swift Package
Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
alphatroya/KeyboardManager
Simple wrapper around UIKeyboardNotification events
.package(url: "https://github.com/alphatroya/KeyboardManager.git", from: "2.1")

Keyboard Manager

Swift 5.0+ Run tests codebeat badge Documentation

Simple wrap up for UIKeyboardNotification events

Usage

The framework introduces a KeyboardObserver object with helper methods that simplify working with UIKeyboardNotification data.

self.observationToken = KeyboardObserver.addObserver { event in
    if case let .willShow(data) = event {
        // process KeyboardManager.Data struct
    }
}

Installation

Swift Package Manager (required Xcode 11)

  1. Select File > Swift Packages > Add Package Dependency. Enter https://github.com/alphatroya/KeyboardManager in the "Choose Package Repository" dialog.
  2. In the next page, specify the version resolving rule as "Up to Next Major" with "1.4.0" as its earliest version.
  3. After Xcode checking out the source and resolving the version, you can choose the "KeyboardManager" library and add it to your app target.

Author

Alexey Korolev, alphatroya@gmail.com Vlad Zaicev, zaycevvd95@gmail.com

GitHub

link
Stars: 1
Last commit: 2 days ago

Ad: Job Offers

iOS Software Engineer @ Perry Street Software
Perry Street Software is Jack’d and SCRUFF. We are two of the world’s largest gay, bi, trans and queer social dating apps on iOS and Android. Our brands reach more than 20 million members worldwide so members can connect, meet and express themselves on a platform that prioritizes privacy and security. We invest heavily into SwiftUI and using Swift Packages to modularize the codebase.

Related Packages

Release Notes

Add shared last event observer
2 days ago

Merge #52 by @Vladzzzzz

Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API