sasojadrovski / SJFluidSegmentedControl

A segmented control with custom appearance and interactive animations. Written in Swift 3.0.
MIT License
973 stars 76 forks source link

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

Open MehdiBrandoMahdloo opened 6 years ago

MehdiBrandoMahdloo commented 6 years ago

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 commented 6 years ago

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).

MalcolmnDEV commented 5 years ago

Same Issue

MalcolmnDEV commented 5 years ago

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