StackViewController alternatives and similar libraries
Based on the "Activity Indicator" category.
Alternatively, view StackViewController alternatives based on common mentions on social networks and blogs.
MBProgressHUD9.9 0.0 L3 StackViewController VS MBProgressHUDMBProgressHUD + Customizations
SVProgressHUD9.9 0.0 L2 StackViewController VS SVProgressHUDA clean and lightweight progress HUD for your iOS and tvOS app.
NVActivityIndicatorViewA collection of awesome loading animations
SkeletonView☠️ An elegant way to show users that something is happening and also prepare them to which contents they are awaiting
NJKWebViewProgress9.2 0.0 L4 StackViewController VS NJKWebViewProgressUIWebView progress interface
M13ProgressSuite9.2 0.0 L2 StackViewController VS M13ProgressSuiteA suite containing many tools to display progress information on iOS.
PKHUD9.1 0.0 L4 StackViewController VS PKHUDA Swift based reimplementation of the Apple HUD (Volume, Ringer, Rotation,…) for iOS 8.
MRProgress8.7 0.0 L4 StackViewController VS MRProgressCollection of iOS drop-in components to visualize progress
ProgressHUD8.7 0.0 L4 StackViewController VS ProgressHUDProgressHUD is a lightweight and easy-to-use HUD for iOS.
DACircularProgress8.6 0.0 L5 StackViewController VS DACircularProgressDACircularProgress is a UIView subclass with circular UIProgressView properties.
SwiftSpinner8.5 1.1 L5 StackViewController VS SwiftSpinnerA beautiful activity indicator and modal alert written in Swift (originally developed for my app DoodleDoodle) Using blur effects, translucency, flat and bold design - all iOS 8 latest and greatest
FillableLoaders8.3 0.0 L4 StackViewController VS FillableLoadersCompletely customizable progress based loaders drawn using custom CGPaths written in Swift
TKRubberIndicator7.8 0.0 L4 StackViewController VS TKRubberIndicatorA rubber animation pagecontrol
YLProgressBar7.7 0.0 L3 StackViewController VS YLProgressBarUIProgressView replacement with an highly and fully customizable animated progress bar in pure Core Graphics
LiquidLoaderSpinner loader components with liquid animation
MKRingProgressView7.7 0.0 L4 StackViewController VS MKRingProgressView⭕️ Ring progress view similar to Activity app on Apple Watch
KDCircularProgress7.5 1.0 L4 StackViewController VS KDCircularProgressA circular progress view with gradients written in Swift
MBCircularProgressBarA circular, animatable & highly customizable progress bar from the Interface Builder (Objective-C)
FFCircularProgressViewFFCircularProgressView - An iOS 7-inspired blue circular progress view
PageControls7.1 0.0 L5 StackViewController VS PageControlsThis is a selection of custom page controls to replace UIPageControl, inspired by a dribbble found here: https://dribbble.com/shots/2578447-Page-Control-Indicator-Transitions-Collection
Windless6.8 0.0 StackViewController VS WindlessWindless makes it easy to implement invisible layout loading view.
ParticlesLoadingViewA customizable SpriteKit particles animation on the border of a view.
GradientLoadingBar6.6 2.1 L5 StackViewController VS GradientLoadingBar⌛️A customizable animated gradient loading bar.
AlamofireNetworkActivityIndicatorControls the visibility of the network activity indicator on iOS using Alamofire.
Skeleton6.2 0.0 StackViewController VS Skeleton💀 An easy way to create sliding CAGradientLayer animations! Works great for creating skeleton screens for loading content.
EZLoadingActivity6.1 0.0 L5 StackViewController VS EZLoadingActivity:hatching_chick: Lightweight Swift loading activity for iOS7+
FlexibleSteppedProgressBarFlexible Stepped Progress Bar for IOS
WSProgressHUD6.0 0.0 L3 StackViewController VS WSProgressHUDThis is a beauful hud view for iPhone & iPad
GearRefreshControl5.8 0.0 L5 StackViewController VS GearRefreshControlA custom animation for the UIRefreshControl
GradientProgressBar5.3 4.6 L5 StackViewController VS GradientProgressBar📊 A customizable gradient progress bar (UIProgressView).
iOS Circle Progress BariOS Circle Progress Bar
STLoadingGroup5.2 0.0 L5 StackViewController VS STLoadingGrouploading views
RSLoadingViewAwesome loading animations using 3D engine written with Swift
BigBrother5.0 0.0 L5 StackViewController VS BigBrotherAutomatically sets the network activity indicator for any performed request.
DSGradientProgressViewA simple animated progress bar in Swift
StepProgressViewStep-by-step progress view with labels and shapes. A good replacement for UIActivityIndicatorView and UIProgressView.
Hexacon4.4 0.0 L5 StackViewController VS HexaconA fancy hexagonal layout for displaying data like your Apple Watch
RPCircularProgress4.3 0.0 L3 StackViewController VS RPCircularProgressCircular progress UIView subclass with UIProgressView properties
AudioIndicatorBars4.2 0.0 L5 StackViewController VS AudioIndicatorBarsAIB indicates for your app users which audio is playing. Just like the Podcasts app.
IHProgressHUDA clean and lightweight progress HUD based on SVProgressHUD, converted to Swift with the help of Swiftify.
SnapTimer4.1 0.0 L5 StackViewController VS SnapTimerImplementation of Snapchat's stories timer.
RHPlaceholderShow pleasant loading view for your users 😍
KYNavigationProgress3.9 0.0 L5 StackViewController VS KYNavigationProgressSimple extension of UINavigationController to display progress on the UINavigationBar.
RPLoadingAnimation3.8 0.0 L3 StackViewController VS RPLoadingAnimationLoading animations :cyclone: by using Swift CALayer
LinearProgressBar3.6 0.0 L5 StackViewController VS LinearProgressBarA simple Linear Progress Bar for IOS (Swift 3.0), inspired by Material Design
StatusBarOverlayStatusBarOverlay will automatically show a "No Internet Connection" bar when your app loses connection, and hide it again. It supports apps which hide the status bar and The Notch
MKProgressSimple Swift Progress HUD
VHUD3.0 0.0 L4 StackViewController VS VHUDSimple HUD.
JDBreaksLoadingYou can easily start up a little breaking game by one line.
Appwrite - The Open Source Firebase alternative introduces iOS support
* Code Quality Rankings and insights are calculated and provided by Lumnify.
They vary from L1 to L5 with "L5" being the highest.
Do you think we are missing an alternative of StackViewController or a related project?
StackViewController is a Swift framework that simplifies the process of building forms and other static content using
UIStackView. For example, the form below is implemented using a StackViewController:
The purpose of this project is two-fold: encouraging design patterns that are more suitable for building content like the form pictured above, and providing tools to make the process simpler. The following sections contain a summary of the existing solutions and how we can improve upon them.
Building Forms with
UITableView (Is Difficult)
Traditionally, iOS developers have utilized
UITableView to build forms and other relatively static list-based user interfaces, despite the
UITableView API being a poor fit for such tasks.
UITableView is designed primarily for dynamic content, and a lot of the functionality that it provides is only necessary for dynamic content. Using it to build static user interfaces results in a lot of boilerplate code in implementing many data source and delegate methods.
Another major issue is the difficulty of implementing variable-height content with
UITableView. When building a form, for example, a common need is the ability to display a field (e.g. a text view) whose dimensions automatically change as the content inside it changes. One half of the problem is knowing how to size the cell — this is typically done by either manually computing the size in
-tableView:heightForRowAtIndexPath: or by using Autolayout, estimated row heights, and the self-sizing table view cell feature introduced in iOS 8. The other half of the problem is notifying the table view that it should update the layout for a cell once the content inside the cell changes. This can involve ugly hacks like calling
-[UITableView beginUpdates] and
-[UITableView endUpdates] to force relayout.
The bottom line is that
UITableView is the wrong tool for the job.
UIStackView, introduced in iOS 9, provides a clean abstraction over Autolayout for laying out a horizontal or vertical stack of views. By composing multiple instances of
UIStackView, the vast majority of common user interface layouts can be built quite easily without the need to manually create and remove layout constraints.
UIStackView is well suited for the task of building forms and other static content, but it has some shortcomings when applied to that particular use case. There are things that
UITableViewController provide that we often take for granted: scrolling support, cell separators, and other conveniences.
UIStackView doesn't have this functionality built in, so one of the goals of this library is to fill in those key pieces of missing functionality to the point where using a stack view is easier than using a table view for the same task.
View Controllers over Views
A strong indicator of poorly designed iOS code is a bad separation of responsibilities between the view and the view controller, in accordance with the MVC (Model-View-Controller) pattern. The Massive View Controller anti-pattern is a common occurrence where the view controller simply does too much, absorbing responsibilities from the model and view layers. Conversely, there is also an anti-pattern where the view takes on many controller-like responsibilities rather than just focusing on the layout and rendering of the content.
StackViewController defines a single API for using both
UIViewController instances to provide content.
UIView instances can be used when the content being displayed is simple and non-interactive (e.g. a static label).
UIViewController instances can be used for more complex controls where there needs to be a controller in addition to the view, when, for example, a view displays a visual representation of state from a model that needs to be updated as the user interacts with the view.
View Controller Composition
Composition over inheritance is a fundamental principle of object-oriented programming.
This principle has always been used in iOS view hierarchies, where more complex views are composed out of simpler ones (e.g. how a
UIButton contains a
UILabel and a
UIImageView that render its content). However, there was no "official" way to compose view controllers until the introduction of view controller containment in iOS 5. It was possible to mimic behaviour like this prior to iOS 5, but handling the propagation of events between parent and child view controllers and transitions between child view controllers was difficult to get right, which are all problems that the view controller containment API solves.
In the same way that you can create complex layouts by composing multiple
UIStackView instances, you can use the view controller containment API to compose multiple instances of
StackViewController to create a hierarchy of view controllers where each content view is backed by a corresponding view controller that cleanly separates the responsibilities, instead of handling all of that at the view level (an anti-pattern, as mentioned earlier).
The framework provides two primary classes:
StackViewContainer wraps a
UIStackView and implements the following additional features:
- Scrolling support by embedding the
UIScrollViewwith 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
- 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
UIStackViewdoesn'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.
The included example app, pictured above, demonstrates the usage of both
StackViewContainer on its own (the image attachment control) as well as
StackViewController (the full form).
This project is licensed under the MIT license. See
LICENSE.md for more details.
*Note that all licence references and agreements mentioned in the StackViewController README section above are relevant to that project's source code only.