A universal drop-in UIScrollView based solution that keeps active textfield visible when keyboard is being shown.
- Create a UIScrollView as your top level view and add all your other views as subviews. Assign
RxKeyboardAvoidingScrollableView
to the scrollview's class in your storyboard. - You can also create
RxKeyboardAvoidingScrollableView
programatically. Just remember to keep it as your top level view.
-
Using CocoaPods:
pod "RxKeyboardAvoidingScrollableView"
-
Using Carthage:
github "ameytavkar/RxKeyboardAvoidingScrollableView" ~> 1.0.0
- Swift 5.0
- iOS 9.1+
In development, RxKeyboardAvoidingScrollableView manages dependencies with Carthage. Use the command below in order to build the dependencies. Note that the dependecies are added as git submodules in the .xcworkspace
.
make setup-dependencies
RxKeyboardAvoidingScrollView is under MIT license. See LICENSE for details.