OAStackView alternatives and similar libraries
Based on the "UI" category.
Alternatively, view OAStackView alternatives based on common mentions on social networks and blogs.
-
DZNEmptyDataSet
A drop-in UITableView/UICollectionView superclass category for showing empty datasets whenever the view has no content to display -
IQKeyboardManager
Codeless drop-in universal library allows to prevent issues of keyboard sliding up and cover UITextField/UITextView. Neither need to write any code nor any setup required and much more. -
SkeletonView
☠️ An elegant way to show users that something is happening and also prepare them to which contents they are awaiting -
animated-tab-bar
:octocat: RAMAnimatedTabBarController is a Swift UI module library for adding animation to iOS tabbar items and icons. iOS library made by @Ramotion -
TTTAttributedLabel
A drop-in replacement for UILabel that supports attributes, data detectors, links, and more -
MGSwipeTableCell
An easy to use UITableViewCell subclass that allows to display swippable buttons with a variety of transitions. -
JTAppleCalendar
The Unofficial Apple iOS Swift Calendar View. Swift calendar Library. iOS calendar Control. 100% Customizable -
SWTableViewCell
An easy-to-use UITableViewCell subclass that implements a swippable content view which exposes utility buttons (similar to iOS 7 Mail Application) -
JVFloatLabeledTextField
UITextField subclass with floating labels - inspired by Matt D. Smith's design: http://dribbble.com/shots/1254439--GIF-Mobile-Form-Interaction?list=users -
XLForm
XLForm is the most flexible and powerful iOS library to create dynamic table-view forms. Fully compatible with Swift & Obj-C. -
FSPagerView
FSPagerView is an elegant Screen Slide Library. It is extremely helpful for making Banner View、Product Show、Welcome/Guide Pages、Screen/ViewController Sliders. -
TPKeyboardAvoiding
A drop-in universal solution for moving text fields out of the way of the keyboard in iOS -
SideMenu
Simple side/slide menu control for iOS, no code necessary! Lots of customization. Add it to your project in 5 minutes or less. -
SwipeCellKit
Swipeable UITableViewCell/UICollectionViewCell based on the stock Mail.app, implemented in Swift. -
Alerts & Pickers
Advanced usage of UIAlertController and pickers based on it: Telegram, Contacts, Location, PhotoLibrary, Country, Phone Code, Currency, Date... -
SwiftEntryKit
SwiftEntryKit is a presentation library for iOS. It can be used to easily display overlays within your iOS apps. -
PageMenu
A paging menu controller built from other view controllers placed inside a scroll view (like Spotify, Windows Phone, Instagram) -
Material Components
[In maintenance mode] Modular and customizable Material Design UI components for iOS -
SWRevealViewController
A UIViewController subclass for presenting side view controllers inspired on the FaceBook and Wunderlist apps, done right ! -
CSStickyHeaderFlowLayout
UICollectionView replacement of UITableView. Do even more like Parallax Header, Sticky Section Header. Made for iOS 7. -
expanding-collection
:octocat: ExpandingCollection is an animated material design UI card peek/pop controller. iOS library made by @Ramotion
InfluxDB - Power Real-Time Data Analytics at Scale
* 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 OAStackView or a related project?
README
OAStackView
iOS 9 introduced the very cool UIStackView, UIStackView can be used to easily create simple and complex layouts.
As expected UIStackView
can only be used for iOS 9 and up. This project tries to port back the stackview to iOS 7+.
OAStackView
aims at replicating all the features in UIStackView
Usage
To run the example project, clone the repo, and run pod install
from the Example directory first.
Since OAStackView
mimics the interface of UIStackView
, the usage of OAStackView
is similar to UIStackView
.
OAStackView
Can be either used from the Interface builder, or from code.
Interface Builder
Drag a a UIView into your view controller, and add some views to it.
Change the class to OAStackView
(Optional) Change the stack Axis (set Axis Value to 0 for Horizontal or 1 for Vertical), Spacing, Alignment or distribution.
Run the project!
From Code
To use OAStackView
from code, Please refer to UIStackView for proper documentation.
As a quick example on its usage do the following:
Create a couple of views to be stacked:
UILabel *l1 = [[UILabel alloc] init];
l1.text = @"Label 1";
UILabel *l2 = [[UILabel alloc] init];
l2.text = @"Label 2";
Create the stack view passing the array of views:
OAStackView *stackView = [[OAStackView alloc] initWithArrangedSubviews:@[l1, l2]];
stackView.translatesAutoresizingMaskIntoConstraints = NO;
Add the stack view to self.view
[self.view addSubview:stackView];
[self.view addConstraints:[NSLayoutConstraint constraintsWithVisualFormat:@"V:|-30-[stackView]"
options:0
metrics:0
views:NSDictionaryOfVariableBindings(stackView)]];
[self.view addConstraints:[NSLayoutConstraint constraintsWithVisualFormat:@"H:|-10-[stackView]"
options:0
metrics:0
views:NSDictionaryOfVariableBindings(stackView)]];
Installation
OAStackView is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod "OAStackView"
Tests
Since OAStackView
has been built from reverse engineering UIStackView
, and since I intend to keep updating and refactoring OAStackView
, tests was one of the requirements going forward.
The following a human readable text subscript (generated with specipy).
Contribution
All contributions in any form are welcomed, if you find the project helpful, and you want to contribute then please do.
Known Issues, and future improvements
Missing functionality
OAStackView
implements most of the features from UIStackView
except the following:
[ ]
baselineRelativeArrangement
@property(nonatomic,getter=isBaselineRelativeArrangement) BOOL baselineRelativeArrangement;
[x]
layoutMarginsRelativeArrangement
@property(nonatomic,getter=isLayoutMarginsRelativeArrangement) BOOL layoutMarginsRelativeArrangement;
UIStackViewDistribution
is also partially implemented (2 elements out of 5 are still not implemented)
- [x]
UIStackViewDistributionFill
- [x]
UIStackViewDistributionFillEqually
- [x]
UIStackViewDistributionFillProportionally
- [ ]
UIStackViewDistributionEqualSpacing
- [ ]
UIStackViewDistributionEqualCentering
Please refer to UIStackView for proper documentation.
Future improvements
The following would be nice to have for future versions
- [ ] Covering the remaining functionality from
UIStackView
- [ ] Better Documentation
- [ ] Better test coverage for some edge cases
- [ ] Rewrite in swift, or more swift friendly
Author
Omar Abdelhafith, [email protected]
License
OAStackView is available under the MIT license. See the LICENSE file for more info.
*Note that all licence references and agreements mentioned in the OAStackView README section above
are relevant to that project's source code only.