0

This is my code for add Carbon kit in my view.

    let arrMenuName = ["Signal","Buy or Not"]
    carbonSwipe.delegate = self
    carbonSwipe = CarbonTabSwipeNavigation(items: arrMenuName as [AnyObject], delegate: self)
    carbonSwipe.carbonTabSwipeScrollView.isScrollEnabled = true
    carbonSwipe.insert(intoRootViewController: self, andTargetView: mainvw)
    carbonSwipe.carbonSegmentedControl?.backgroundColor = UIColor.clear;
    carbonSwipe.carbonSegmentedControl?.setWidth(UIScreen.main.bounds.size.width / 2, forSegmentAt: 0)
    carbonSwipe.carbonSegmentedControl?.setWidth(UIScreen.main.bounds.size.width / 2, forSegmentAt: 1)
    carbonSwipe.setTabBarHeight(48)
    carbonSwipe.setNormalColor(UIColor.black, font: UIFont.init(name: "SanFranciscoDisplay-Regular", size: 15)!)
    carbonSwipe.setSelectedColor(UIColor.red, font: UIFont.init(name: "SanFranciscoDisplay-Bold", size: 15)!)

    carbonSwipe.setIndicatorHeight(2)
    carbonSwipe.setIndicatorColor(UIColor.red)

enter image description here

Any suggestion could be appreciate. Thank you.

Himanshu Moradiya
  • 4,769
  • 4
  • 25
  • 49

1 Answers1

2

Try by writing below line.

carbonSwipe.toolbar.clipsToBounds = true
Kuldeep
  • 4,466
  • 8
  • 32
  • 59