Skip to content
This repository was archived by the owner on Nov 19, 2023. It is now read-only.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

History

6 Commits

Repository files navigation

KeyboardAvoiding

Easy to use keyboard avoiding library.

Installation

Swift Package Manager

.package(url: "https://github.com/CoreKit/KeyboardAvoiding", from: "1.0.0"),

Usage

import UIKit
import KeyboardAvoiding
classViewController:UIViewController{privatevarkeyboardAvoiding:KeyboardAvoiding!overridefunc viewDidLoad(){
super.viewDidLoad()self.keyboardAvoiding =KeyboardAvoiding().onKeyboardWillShow{ rect in
// do your stuff here }.onKeyboardDidShow{ rect in
// do your stuff here
}.onKeyboardWillHide{
// do your stuff here
}.onKeyboardDidHide{
// do your stuff here
}}overridefunc viewWillAppear(_ animated:Bool){
super.viewWillAppear(animated)self.keyboardAvoiding.start()}overridefunc viewWillDisappear(_ animated:Bool){
super.viewWillDisappear(animated)self.keyboardAvoiding.stop()}}

About

Easy to use keyboard avoiding library.

Topics

Resources

Stars

5 stars

Watchers

1 watching

Forks

Releases

Contributors

Languages