CarbonKit
CarbonKit copied to clipboard
Disable swiping for some tabs/click on tab to move there
Hi.
Following situation:
I have 5 tabs. When starting in the Tab 1 I want to disable swiping to Tab 2 until some actions have been completed (press FORWARD button). The more I would need to change the color of the tabs which are not yet reached. I can disable them with:
carbonTabSwipeNavigation.carbonSegmentedControl?.setEnabled(false, forSegmentAt: 1)
so the color changes(alpha 0.5 i guess), but I want to set custom color for each tab. Is that possible? I could then just set the same color as the background so they wouldn't be visible.
And something more: When clicking on the tabs on the tabbar, nothing happens. Is there a way to activate that so I could change tabs by clicking on one of them? Shouldn't that be normally activated?
Thanks.