Open O-mkar opened 5 years ago
i fixed it by using zPosition, i'm not sure if it is the right way to do it.
- (void)syncImageTintColor {
for (UIView *segment in self.segments) {
for (UIView *subView in segment.subviews) {
if ([subView isKindOfClass:[UIImageView class]]) {
if ([self.segments indexOfObject:segment] == self.selectedSegmentIndex) {
subView.tintColor = _imageSelectedColor;
self.indicator.layer.zPosition = -1; //here
} else {
subView.tintColor = _imageNormalColor;
}
}
}
}
}
just add one line in pod file : - CarbonTabSwipeNavigation.m
self.carbonSegmentedControl.indicator.layer.zPosition = -1;
I i have modified indicator height and it seems to work fine but the indicator overlaps the title, looks like a bug
How it looks
But when i over scroll on right it fixes
Here is a video link https://youtu.be/eGCbbcT6ki4
Any idea what willl be the issue?