Swiftpack.co - afiorito/MagicKeyboard as Swift Package

Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
See all packages published by afiorito.
afiorito/MagicKeyboard v2.0.1
A library for seamlessly managing the position of UITextField/UITextView during iOS keyboard appearance.
⭐️ 1
🕓 1 year ago
iOS macOS
.package(url: "https://github.com/afiorito/MagicKeyboard.git", from: "v2.0.1")

icon MagicKeyboard

MagicKeyboard is a library for seamlessly managing the position of text inputs during iOS keyboard appearance. It automatically positions UITextField/UITextViews so they are visible when the keyboard appears. No Code Required!

Installation

Add MagicKeyboard to your project using Swift Package Manager. In your Xcode project, select File > Swift Packages > Add Package Dependency and enter the repository URL.

Basic Usage

MagicKeyboard is a codeless solution to positioning input views when the keyboard appears. All you need to do is instantiate an instance of MagicKeyboard that will live for the lifetime of the application.

class AppDelegate: UIResponder, UIApplicationDelegate {
    let magicKeyboard = MagicKeyboard()

    ...
}

That is all that's needed! MagicKeyboard will handle positioning input views inside a regular UIView or UIScrollView when the keyboard appears.

License

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

GitHub

link
Stars: 1
Last commit: 1 year ago
Advertisement: IndiePitcher.com - Cold Email Software for Startups

Release Notes

MagicKeyboard v2.0.1
1 year ago
  • Fixed an issue with event firing order between keyboardWillShow and inputDidBeginEditing

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