/SwiftTabLayoutViewPager

Tab Layout View Pager in IOS same as Android

Primary LanguageSwift

IOS_TabLayoutViewPager

Overview


Design Tab Layout View pager for IOS same as android native component.

Basic


TabLayoutScrollView has some delegates and datasources to render the view-

DataSources:

  • func numberOfTabsInLayout() -> Int
  • func tabLayoutScrollView(titleForTabAtIndex index: Int) -> String
  • func styleOfSelectedTab() -> (font: UIFont, color: UIColor)
  • func styleOfNonSelectedTab() -> (font: UIFont, color: UIColor)
  • func styleOfTabLine() -> (height: CGFloat, color: UIColor)
  • func marginBetweenTabs() -> CGFloat

Delegates:

  • func tabLayoutScrollView(tabLayoutView: TabLayoutScrollView, didSelectedTabInView item: Int) -> Void

License


TabLayoutScrollView is available under the SWS license. Copyright © 2017 SWS