Skip to content

HelioMartin/HMStackView

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 

Repository files navigation

HMStackView

Now you can insert UIViewControllers instead of UIViews to the stack. Modification of the great component BSStackView.

Install manually by downloading the files from GitHub and then use

#import "HMStackView.h"

Usage

Add the below reference to the @interface method in the header file(.h)

@property (nonatomic, strong) IBOutlet HMStackView *stackView;

Initialize the HMStackView in the Implementation File (.m)

self.stackView.swipeDirections = UISwipeGestureRecognizerDirectionLeft | UISwipeGestureRecognizerDirectionRight | UISwipeGestureRecognizerDirectionUp | UISwipeGestureRecognizerDirectionDown;
self.stackView.forwardDirections = UISwipeGestureRecognizerDirectionRight | UISwipeGestureRecognizerDirectionUp;
self.stackView.backwardDirections = UISwipeGestureRecognizerDirectionLeft | UISwipeGestureRecognizerDirectionDown;
self.stackView.changeAlphaOnSendAnimation = YES;
[self.stackView configureWithViewControllers:viewControllers];
self.stackView.delegate = self;

Customize constraints

self.stackView.contraintsConfigurator.top = 20.;
self.stackView.contraintsConfigurator.bottom = 50.;
self.stackView.contraintsConfigurator.leading = 10.;
self.stackView.contraintsConfigurator.trailing = 10.;
[self.stackView configureWithViewControllers:viewControllers];

Requirements

  • iOS 8.0 or higher
  • ARC

Author

Helio Martín - helio.martin@icloud.com

License

HMStackView is available under the MIT license. See the LICENSE file for more info.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published