Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/morishin/keyboardfriendlyscrolling

Manage scroll view content insets depending on keyboard frame
https://github.com/morishin/keyboardfriendlyscrolling

ios swift

Last synced: 23 days ago
JSON representation

Manage scroll view content insets depending on keyboard frame

Awesome Lists containing this project

README

        

# KeyboardFriendlyScrolling

![Swift version](https://img.shields.io/badge/swift-4.2-orange.svg)
![CocoaPods compatible](https://cocoapod-badges.herokuapp.com/v/KeyboardFriendlyScrolling/badge.png)
[![Carthage compatible](https://img.shields.io/badge/Carthage-compatible-4BC51D.svg?style=flat)](https://github.com/Carthage/Carthage)

Manage scroll view content insets depending on keyboard frame

## Usage
[Example](https://github.com/morishin/KeyboardFriendlyScrolling/tree/master/Example)

```swift
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

```ruby
pod 'KeyboardFriendlyScrolling'
```

## LICENSE
MIT