CarbonKit icon indicating copy to clipboard operation
CarbonKit copied to clipboard

Change CarbonKit SegmentControll Color Like Clear or Transparent

Open RB-King opened this issue 7 years ago • 5 comments

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 screen shot 2017-06-20 at 4 47 46 pm screen shot 2017-06-20 at 4 48 26 pm

@ermalkaleci

RB-King avatar Jun 20 '17 13:06 RB-King

Try this code

carbonTabSwipeNavigation.toolbar.translucent = true; [carbonTabSwipeNavigation.toolbar setBackgroundImage:[UIImage new] forToolbarPosition:UIToolbarPositionAny barMetrics:UIBarMetricsDefault]; Tested for me.

VivekVithlani avatar Apr 04 '18 07:04 VivekVithlani

Hi Vivek, The above code doesn't work. For me the toolbar background color becomes white but not clear. Any help?

Md-Rais avatar Jul 03 '19 12:07 Md-Rais

Hi Ermal Kaleci,

Any help by updating carbon kit with this feature?

Md-Rais avatar Jul 03 '19 13:07 Md-Rais

CarbonTabSwipeNavigation().toolbar.setBackgroundImage(UIImage(),forToolbarPosition: .any, barMetrics: .default) CarbonTabSwipeNavigation().toolbar.setShadowImage(UIImage(), forToolbarPosition: .any)

Esam-Elayyan avatar Mar 22 '20 11:03 Esam-Elayyan

carbonTabSwipeNavigation.toolbar.barTintColor = UIColor.groupTableViewBackground

ajinkya92 avatar Jul 27 '20 12:07 ajinkya92