Latest 1.0.0
Homepage https://github.com/APUtils/ContentFitScrollView
License MIT
Platforms ios 8.0
Authors

CI Status
Version
License
Platform

Self adjustable Scroll View that proportionally reducing provided height constraints constants to fit all content on screen without scrolling. It takes into account ContentFitLayoutConstraint‘s minimumHeight value. If it’s unable to fit content on screen without scrolling it’ll just allow scrolling.

ContentFitScrollView allows you to layout your content for high resolution screens and be sure that in case there isn’t enough space on lower resolution screens content will be scrollable.

Example

To run the example project, clone the repo, and run pod install from the Example directory first.

GIF animation

Installation

CocoaPods

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

pod 'ContentFitScrollView'

Usage

Just set ContentFitScrollView class to UIScrollView in storyboard (usually it’s base container):

and add constraints that you want to be resized in order to fit content for screen:

You can set ContentFitLayoutConstraint class for those constraints in order to specify minimum height.

See example project for more details.

Contributions

Any contribution is more than welcome! You can contribute through pull requests and issues on GitHub.

Author

Anton Plebanovich, [email protected]

License

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

Latest podspec

{
    "name": "ContentFitScrollView",
    "version": "1.0.0",
    "summary": "Self adjustable Scroll View that tries to fit all content on screen without scrolling.",
    "description": "Self adjustable Scroll View that proportionally reducing provided height constraints constants to fit all content on screen without scrolling.nIt takes into account `ContentFitLayoutConstraint`'s `minimumHeight` value.nIf it's unable to fit content on screen without scrolling it'll just allow scrolling.",
    "homepage": "https://github.com/APUtils/ContentFitScrollView",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "Anton Plebanovich": "[email protected]"
    },
    "source": {
        "git": "https://github.com/APUtils/ContentFitScrollView.git",
        "tag": "1.0.0"
    },
    "platforms": {
        "ios": "8.0"
    },
    "source_files": "ContentFitScrollView/Classes/**/*",
    "pushed_with_swift_version": "3.0"
}

Pin It on Pinterest

Share This