Skip to content

Manage scroll view content insets depending on keyboard frame

Notifications You must be signed in to change notification settings

morishin/KeyboardFriendlyScrolling

Repository files navigation

KeyboardFriendlyScrolling

Swift version CocoaPods compatible Carthage compatible

Manage scroll view content insets depending on keyboard frame

Usage

Example

import UIKit
import KeyboardFriendlyScrolling

class ViewController: UIViewController {
    private var keyboardFriendlyScrollController: KeyboardFriendlyScrollController?

    @IBOutlet private weak var scrollView: UIScrollView!

    override func viewDidLoad() {
        super.viewDidLoad()
        keyboardFriendlyScrollController = KeyboardFriendlyScrollController(viewController: self, scrollView: scrollView).start()
    }
}

Installation

Carthage

Cartfile

github "morishin/KeyboardFriendlyScrolling"

CocoaPods

Podfile

pod 'KeyboardFriendlyScrolling'

LICENSE

MIT

About

Manage scroll view content insets depending on keyboard frame

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published