What is StackViewController?

StackViewController is a Swift framework that simplifies the process of building forms and other static content using UIStackView.

Features:

The framework provides two primary classes: StackViewContainer and StackViewController. StackViewContainer wraps a UIStackView and implements the following additional features:

  • Scrolling support by embedding the UIStackView inside a UIScrollView with automatic management of associated constraints
  • Autoscroll behaviour to automatically adjust layout and scroll to the view being edited when the keyboard appears (the same behaviour implemented by UITableViewController)
  • Customizable separator views between content views that can be toggled on a per-view basis and are managed automatically when content views are inserted and removed
  • Other minor conveniences like support for background views and changing the background color (since UIStackView doesn’t draw a background)

StackViewController is a subclass of UIViewController that uses an instance of StackViewContainer as its view, and adds support for adding content using view controller containment (i.e. view controller composition). This means that you can use view controllers and/or views to represent your content instead of just views, and StackViewController automatically handles adding and removing them as child view controllers.

Overview

  • Pricing: Free
  • Resource Link: https://github.com/seedco/StackViewController
  • Resource Maker: Seed
  • Mobile Platform Destination: iOS Apps
  • Mobile Platform Support: Native iOS
  • Programming Languages: Swift
  • CocoaPods: StackViewController