Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/morishin/keyboardfriendlyscrolling
- Owner: morishin
- Created: 2017-12-02T04:35:18.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2019-03-12T07:10:57.000Z (over 5 years ago)
- Last Synced: 2024-10-13T23:35:06.791Z (about 1 month ago)
- Topics: ios, swift
- Language: Swift
- Homepage:
- Size: 22.5 KB
- Stars: 1
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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 KeyboardFriendlyScrollingclass 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