There is another problem similar to issue #32 and related to the "didset" highlighted logic that affects the attributed title of the segment
To reproduce:
Use text only as segmented style
Have only 2 segments so that the segmented control does not scroll
Set different title text attributes for normal, highlighted and selected states
Tap and hold the selected segment that active is
Slide the finger to left or right until the finger is in the next segment
Lift the finger and the selected segment title stays in the normal attributed state when it should have the selected one
In my tests I have seen that the control can have the following combination states:
not selected, not highlighted (normal)
not selected, highlighted (only highlighted)
selected, not highlighted (only selected)
selected and highlighted (selected and highlighted)
I think that the priorities should be highlighted > selected > normal, that means that when isHighlighted is set to false we need to check if it is selected
This problem is present in other segmented styles too
There is another problem similar to issue #32 and related to the "didset" highlighted logic that affects the attributed title of the segment
To reproduce:
In my tests I have seen that the control can have the following combination states:
I think that the priorities should be highlighted > selected > normal, that means that when isHighlighted is set to false we need to check if it is selected
This problem is present in other segmented styles too