sli

SlidingContainerViewController

An android scrollable tab bar style container view controller

Showing:

Popularity

Downloads/wk

0

GitHub Stars

221

Maintenance

Last Commit

4yrs ago

Contributors

3

Package

Dependencies

0

License

MIT

Categories

Readme

SlidingContainerViewController

An Android scrollable tab bar style container view controller

Demo

alt tag

Install

Manual

Copy & paste Source folder to your project

Cocoapods

use_frameworks!
pod 'SlidingContainerViewController'

Usage

Create a UIViewController as container, setup your tab view controllers and implement SlidingContainerViewController and add its view to view controller's view like:

 let slidingContainerViewController = SlidingContainerViewController (
   parent: self,
   contentViewControllers: [vc1, vc2, vc3, vc4],
   titles: ["First", "Second", "Third", "Forth"])

 view.addSubview(slidingContainerViewController.view)

SlidingContainerViewControllerDelegate

protocol SlidingContainerViewControllerDelegate {
  func slidingContainerViewControllerDidMoveToViewController (slidingContainerViewController: SlidingContainerViewController, viewController: UIViewController, atIndex: Int)
  func slidingContainerViewControllerDidHideSliderView (slidingContainerViewController: SlidingContainerViewController)
  func slidingContainerViewControllerDidShowSliderView (slidingContainerViewController: SlidingContainerViewController)
}

SlidingContainerSliderView

The tab bar slider view in the sliding container view controller. Fully customisable with its appearance property.

SlidingContainerSliderViewAppearance

struct SlidingContainerSliderViewAppearance {
  var backgroundColor: UIColor

  var font: UIFont
  var selectedFont: UIFont

  var textColor: UIColor
  var selectedTextColor: UIColor

  var outerPadding: CGFloat
  var innerPadding: CGFloat

  var selectorColor: UIColor
  var selectorHeight: CGFloat
}

Rate & Review

Great Documentation0
Easy to Use0
Performant0
Highly Customizable0
Bleeding Edge0
Responsive Maintainers0
Poor Documentation0
Hard to Use0
Slow0
Buggy0
Abandoned0
Unwelcoming Community0
100