Skip to content
This repository has been archived by the owner on Sep 21, 2020. It is now read-only.

Add a mask when tab changes #256

Open
rockylive opened this issue May 25, 2020 · 1 comment
Open

Add a mask when tab changes #256

rockylive opened this issue May 25, 2020 · 1 comment

Comments

@rockylive
Copy link

PHOTO-2020-05-19-19-32-27

Please add this feature where you switching from tabs

@eddyteddy3
Copy link

I had the same query and i did a hack there to achieve that.

I set the indicator height with the height of segmentControl then gave the desired background color to indicator and then gave the cornerRadius to indicator as they are using image for the indicator.

    tabSwipe.setIndicatorColor(.black) //indicator color
    tabSwipe.carbonTabSwipeScrollView.isScrollEnabled = false //set accordingly 
    tabSwipe.setIndicatorHeight(39) //perfect for my scenario
    tabSwipe.carbonTabSwipeScrollView.backgroundColor = UIColor(named: "Dark") //segment background color
    tabSwipe.carbonSegmentedControl?.indicator.layer.cornerRadius = 10 //desired  radius

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants