Latest 0.1.8
Homepage https://github.com/cmc5788/ScrollStack
License MIT
Platforms ios 11.0
Authors

Build Status
Version
License
Platform

ScrollStack combines UIScrollView and some concepts from UIStackView into a single view called ScrollStackView. In addition, it adds the concept of weighted sizes for children. Currently the best way to get up and running with ScrollStackView is to check out the Example app’s ViewController.swift file. Adding a child to a ScrollStackView is as simple as:

let scrollStack = ScrollStackView()
// ...
scrollStack.pushItem(.init(UIView()))
{ (item, v: UIView) in
    v.backgroundColor = .random()
    return item
        .fixedSize(50)
        .leading(16)
        .trailing(16)
}

Note that this library currently includes no conveniences for usage in Interface Builder, and is optimized for programmatic layouts.

Example

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

Requirements

The Example app uses SnapKit for convenience in Autolayout, but ScrollStack itself brings in no external dependencies.

Installation

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

pod 'ScrollStack'

Author

cmc5788, [email protected]

License

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

Latest podspec

{
    "name": "ScrollStack",
    "version": "0.1.8",
    "summary": "A vertical & horizontal scrollable stack layout that supports weighted sizing of elements.",
    "description": "ScrollStack is a vertical & horizontal scrollable stack layout that supports weighted sizing of elements.",
    "homepage": "https://github.com/cmc5788/ScrollStack",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "cmc5788": "[email protected]"
    },
    "source": {
        "git": "https://github.com/cmc5788/ScrollStack.git",
        "tag": "0.1.8"
    },
    "platforms": {
        "ios": "11.0"
    },
    "swift_version": "4.2",
    "source_files": "ScrollStack/Classes/**/*"
}

Pin It on Pinterest

Share This