title: CarbonKit CarbonTabSwipeNavigation, Viewcontrollers not aligning correctly
body: <p>I'm using Carbonkit's CarbonTabSwipeNavigation by ermalkaleci , when the view loads, the viewcontrollers are aligned properly, then when switching to the second viewcontroller the alignment of the second viewcontroller is correct but when scrolling back to the first viewcontroller, it is aligned wrong and a small portion of the second viewcontroller is visible. Tried everything I could find but no luck so far.</p>
  
  <p>My current setup I'm using a toolbar but same behavior when inserting with insertIntoRootViewController :(</p>
  
  <pre><code>    class func setupCarbonPages(carbonSwipeTabsItem:CarbonTabSwipeNavigation,tabTitles:[String],totalWidth: CGFloat) -&gt; CarbonTabSwipeNavigation{
  
      // Setup the default style
      carbonSwipeTabsItem.toolbar.translucent = false
      carbonSwipeTabsItem.setIndicatorColor(AppConfig.BLUECOLOR)
      carbonSwipeTabsItem.setNormalColor(AppConfig.BLUECOLOR)
      carbonSwipeTabsItem.setSelectedColor(AppConfig.BLUECOLOR, font: UIFont.boldSystemFontOfSize(14))
      carbonSwipeTabsItem.setTabExtraWidth(CGFloat(0))
      carbonSwipeTabsItem.setNormalColor(AppConfig.BLUECOLOR, font: AppConfig.REGULAR_FONT_16)
      carbonSwipeTabsItem.setSelectedColor(AppConfig.BLUECOLOR, font: AppConfig.REGULAR_FONT_16)
  
      // Assign tab width &amp; preload all data
      let menuTabItems:UInt = UInt(tabTitles.count)
      let tabWidth = (totalWidth / CGFloat(menuTabItems))
      for index:UInt in 0 ..&lt; menuTabItems {
          carbonSwipeTabsItem.carbonSegmentedControl!.setWidth(tabWidth, forSegmentAtIndex: Int(index))
      }
  
      return carbonSwipeTabsItem
  }
  </code></pre>
  
  <p>Then in my viewcontroller : </p>
  
  <pre><code>private func setupSwipableTabs(){
      let width = self.view.frame.width
  
      carbonTabSwipeNavigation = CarbonTabSwipeNavigation(items: menuTabTitles as [AnyObject], toolBar: self.toolBar,delegate: self)
      Helper.setupCarbonPages(carbonTabSwipeNavigation, tabTitles: menuTabTitles, totalWidth: self.view.frame.width).insertIntoRootViewController(self)
      Helper.preloadCarbonPages(carbonTabSwipeNavigation, tabs: 2)
  }
  </code></pre>
  
  <p>Library: <a href="https://github.com/ermalkaleci/CarbonKit" rel="nofollow noreferrer">https://github.com/ermalkaleci/CarbonKit</a></p>
  
  <p><a href="https://i.stack.imgur.com/hVacW.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/hVacW.jpg" alt="Problem"></a>
  (Red line is part of the second viewcontroller)</p>