Tab view display bug on visionOS

I noticed a weird tab view display bug on visionOS if the tab labels are changed at runtime, e.g. to switch from one locale to another.

If the longest label on the tabs is smaller than the previous longest tab label, the tab ornament's width shrinks and thus the texts and icons can become barely visible, even if the tab labels are not being displayed.

If the longest tab label gets longer, however, additional padding is added.

It seems as if the calculation for the tab width does not take dynamic changes into account.

Is there a workaround for this behavior?

Just noticed this also happens if you just add a badge to the tab view. Since the badge is added next to the text, the tab will also appear slightly wider when shrunk to show icons only.

Hello waldgeist,

Please file a bug report for this issue using Feedback Assistant. If you could post that FB number here that would be great.

Thanks, Michael

Tab view display bug on visionOS
 
 
Q