Open-Awesome
CategoriesAlternativesStacksSelf-HostedExplore
Open-Awesome

© 2026 Open-Awesome. Curated for the developer elite.

TermsPrivacyAboutGitHubRSS
  1. Home
  2. Swift
  3. StackViewController

StackViewController

MITSwift0.6.0

A Swift framework that simplifies building forms and static content using UIStackView and view controller composition.

GitHubGitHub
866 stars56 forks0 contributors

What is StackViewController?

StackViewController is a Swift framework that simplifies building forms and other static list-based user interfaces on iOS. It replaces the cumbersome use of UITableView for static content by leveraging UIStackView's layout strengths while adding missing features like scrolling, separators, and keyboard management. The framework encourages cleaner code through view controller composition and better separation of responsibilities.

Target Audience

iOS developers building forms, settings screens, or other static content interfaces who want to avoid UITableView boilerplate and leverage UIStackView effectively. It's ideal for those adopting modern iOS design patterns and view controller containment.

Value Proposition

Developers choose StackViewController because it provides a purpose-built solution for static content that eliminates UITableView's complexity for such tasks. Its unique selling point is combining UIStackView's simplicity with essential UITableView features and promoting maintainable code through view controller composition.

Overview

A controller that uses a UIStackView and view controller composition to display content in a list

Use Cases

Best For

  • Building iOS forms with variable-height content like text views
  • Creating settings screens or static list interfaces without UITableView boilerplate
  • Implementing autoscroll behavior for keyboard interactions in forms
  • Adopting view controller composition patterns for cleaner code separation
  • Designing custom UI components that require embedded view controllers
  • Replacing UITableView usage in scenarios where content is relatively static

Not Ideal For

  • Projects requiring dynamic content with cell reuse and high-performance scrolling (e.g., large lists or feeds)
  • Apps targeting iOS versions below 9, as it relies on UIStackView
  • Teams needing built-in UITableView features like swipe-to-delete or drag-and-drop without custom implementation
  • Existing codebases deeply integrated with UITableView that would require significant refactoring

Pros & Cons

Pros

Scrolling and Keyboard Management

Automatically embeds UIStackView in a UIScrollView and handles autoscroll when the keyboard appears, eliminating the need for manual UITableViewController-style boilerplate.

View Controller Composition

Supports adding content via both UIView and UIViewController instances, promoting cleaner MVC separation and reducing massive view controller anti-patterns.

Customizable Separators

Provides toggleable separator views between content views that are managed automatically during insertions and removals, a feature missing from plain UIStackView.

Eliminates UITableView Boilerplate

Designed specifically for static content like forms, avoiding complex UITableView data source and delegate methods for non-dynamic lists.

Cons

iOS 9+ Requirement

Relies on UIStackView, making it incompatible with older iOS versions and limiting use in legacy apps without upgrades.

Limited Ecosystem and Maintenance

As a niche framework, it has less community support and fewer resources compared to UIKit standards, with potential risks if updates stall.

Missing Advanced UITableView Features

Lacks built-in support for swipe actions, reordering, or section headers/footers, requiring custom implementations for such needs.

Frequently Asked Questions

Quick Stats

Stars866
Forks56
Contributors0
Open Issues2
Last commit4 years ago
CreatedSince 2016

Tags

#uistackview#ios#form-builder#ui-components#mobile-development#swift#static-content#uikit

Built With

U
UIScrollView
U
UIKit
S
Swift

Included in

Swift26.0k
Auto-fetched 10 hours ago

Related Projects

TZStackViewTZStackView

UIStackView replica for iOS 7.x and iOS 8.x

Stars1,154
Forks125
Last commit7 years ago
Community-curated · Updated weekly · 100% open source

Found a gem we're missing?

Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.

Submit a projectStar on GitHub