CarbonKit
CarbonKit copied to clipboard
Change CarbonKit SegmentControll Color Like Clear or Transparent
Hello,
I want to set the like clear color or transparent segment view. Like, here i attached my images.i want to set as per my last image and i want to remove white color.
I try with this code and more other way,
carbonTabSwipeNavigation.toolbar.translucent = NO; carbonTabSwipeNavigation.carbonSegmentedControl.tintColor = [UIColor clearColor];
But not set, So Please guide me and help
@ermalkaleci
Try this code
carbonTabSwipeNavigation.toolbar.translucent = true;
[carbonTabSwipeNavigation.toolbar setBackgroundImage:[UIImage new] forToolbarPosition:UIToolbarPositionAny barMetrics:UIBarMetricsDefault];
Tested for me.
Hi Vivek, The above code doesn't work. For me the toolbar background color becomes white but not clear. Any help?
Hi Ermal Kaleci,
Any help by updating carbon kit with this feature?
CarbonTabSwipeNavigation().toolbar.setBackgroundImage(UIImage(),forToolbarPosition: .any, barMetrics: .default) CarbonTabSwipeNavigation().toolbar.setShadowImage(UIImage(), forToolbarPosition: .any)
carbonTabSwipeNavigation.toolbar.barTintColor = UIColor.groupTableViewBackground