/VIPER-NewsTabs

Simple horizontal tabs w/ VIPER base

Primary LanguageSwift

Simple horizontal tabs w/ VIPER base

Misssion

Modular - Tabs (Horizontal CollectionView) to use in your project.

Supported features

This repo can be used as an example for

Feature Supported Note
VIPER architecture Yes
Horizontal scroller Yes

Installation

Carthage

  • Coming soon!

Pods

  • Coming soon!

Manual

#1

  • Drag & drop the Modules folder into your project
  • Give connections for TabView from nib to your VC
  • Declare the presenter
// Setup the Tabs.
 override func viewDidLoad() {
	 presenter?.updateView()
 }

#2

  • Extend PresenterToViewProtocol
// Setup the Data.
 func showData() {
        tabView.dataArray = [String]//Format required
 }

#3

  • Extend TabDelegate
// Selection
func tabSelected(menu: HorizontalTabsView, index: Int) {
	//Callback for selection!
}

My Tasklist

  • Finish my changes
  • Push my commits to GitHub
  • Open a pull request
  • Create Pod
  • Publish Pod

Credits & Thanks