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?