SJFluidSegmentedControl icon indicating copy to clipboard operation
SJFluidSegmentedControl copied to clipboard

(Bug) Third label displayed always in white at first launch.

Open MehdiBrandoMahdloo opened this issue 6 years ago • 3 comments

First of all, thank you fort his incredible library. There's a very small bug which displays the third (the first and the second work fine) label (in your example it's the word "IT") always in white, at the first launch. After switching the tabs, it displays correctly in the color set in the Inspector View.

Hope to see the bug solved soon! Again, thank you so much!

MehdiBrandoMahdloo avatar Aug 10 '18 15:08 MehdiBrandoMahdloo

The problem may also NOT be the color itself, but that the third tab is set to "SELECTED" when it's not (at app launch), for some reason.

Because whenever you select another tab, it starts work properly (right color for not selected).

MehdiBrandoMahdloo avatar Aug 11 '18 14:08 MehdiBrandoMahdloo

Same Issue

MalcolmnDEV avatar Sep 10 '18 07:09 MalcolmnDEV

I managed to get around it tho, so in viewDidLoad I set 1 section to the selected index and then when the viewDidAppear set the other to selected index

MalcolmnDEV avatar Sep 10 '18 07:09 MalcolmnDEV