Latest 1.1.0
Homepage https://github.com/berbschloe/Stacking
License MIT
Platforms ios 9.0

Swift
CocoaPods

A scrollable UIStackView.

Requirements

  • iOS 9.0+
  • Xcode 10.2+
  • Swift 5.0+

CocoaPods

CocoaPods is a dependency manager for Cocoa projects. For usage and installation instructions, visit their website. To integrate the library into your Xcode project using CocoaPods, specify it in your Podfile:

pod 'Stacking', '1.1.0'

Swift Package Manager

The Swift Package Manager is a tool for automating the distribution of Swift code and is integrated into the swift compiler.

dependencies: [
    .package(url: "https://github.com/berbschloe/Stacking.git", from: "1.1.0")
]

Usage

Import the library like you would any other.

Importing

// Add this to the top of your file
import Stacking

Example

// StackingView is a subclass of UIScrollView that has a single content view of type UIStackView
let stackingView = StackingView()

// Has the same API as UIStackView, scrolling behavior is handled automatically on axis change
stackingView.axis = .vertical

// Add arranged subviews the same way you would for UIStackView
stackingView.addArrangedSubview(...)

// Even add multiple at once
stackingView.addArrangedSubviews([...])

Latest podspec

{
    "name": "Stacking",
    "version": "1.1.0",
    "summary": "A scrollable UIStackView.",
    "homepage": "https://github.com/berbschloe/Stacking",
    "license": "MIT",
    "authors": "Brandon Erbschloe",
    "platforms": {
        "ios": "9.0"
    },
    "source": {
        "git": "https://github.com/berbschloe/Stacking.git",
        "tag": "1.1.0"
    },
    "source_files": "Stacking/**/*.{h,m,swift}",
    "swift_version": "5.0"
}

Pin It on Pinterest

Share This