Anybody else having a problem using the segment control in visionOS. My setup has 3 segments. But after I tap segment 2 or 3 then the next tap returns focus to segement 1 not matter what segment I actually tap and then no further taps on segment 1, 2 or 3 trigger the valuechanged event and it appears that segments 2 and 3 are disabled. To diagnose this I added a to the view but I did not wire it up to anything and got the same results so it not my code causing this behavior. Any ideas?
The solution I found that works is to in code remove any existing segments at run time then add them back again. After that the segment control works as expected below is some sample code:
[self.segmentList removeAllSegments];
[self.segmentList insertSegmentWithTitle:NSLocalizedString(@"currenttab", @"") atIndex:0 animated:NO];
[self.segmentList insertSegmentWithTitle:NSLocalizedString(@"alltabs", @"") atIndex:1 animated:NO];
[self.segmentList insertSegmentWithTitle:NSLocalizedString(@"favorites_title", @"") atIndex:2 animated:NO];