Latest 0.2.3
Homepage https://github.com/onmotion/ASViewController
License MIT
Platforms ios 8.0
Authors

Version
License
Platform

Example

sample

Requirements

iOS 8.0+
Swift 4.0

Installation

ASViewController is available through CocoaPods. To install
it, simply add the following line to your Podfile:

pod 'ASViewController'
  • Add import ASViewController to your ViewController

  • Inherit your ViewController from ASViewController instead UIASViewController

  • then wrap your view contains text fields into UIScrollView, add @IBOutlet and bind it to scrollableArea as so:

sample2

  • Setup AutoLayout like so:

1

2

Settings

Also you can set up offset to text field (default = 20)

ASViewController.offset = 10
ASViewController.dismissKeyboardWhenTapAnywhere = true // (default = false) keyboard will be hidden when tapped anywhere outside textfield

Author

Alexandr Kozhevnikov, [email protected]

License

ASViewController is available under the MIT license. See the LICENSE file for more info.

Latest podspec

{
    "name": "ASViewController",
    "version": "0.2.3",
    "summary": "ViewController with auto scroll to active textField when keyboard is showing",
    "description": "Auto scroll to active textField when keyboard is showing. When keyboard is showing up, the keyboard can covering active textField. This Pod prevents that behavior.",
    "homepage": "https://github.com/onmotion/ASViewController",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "Alexandr Kozhevnikov": "[email protected]"
    },
    "source": {
        "git": "https://github.com/onmotion/ASViewController.git",
        "tag": "0.2.3"
    },
    "swift_version": "4.0.0",
    "platforms": {
        "ios": "8.0"
    },
    "source_files": "ASViewController/*.swift"
}

Pin It on Pinterest

Share This