Unwanted animation of navbar controls

What could cause the issue shown on the gif. At first I though clean build folder helps. But when you close the main window and open it after some time it gets back to this state. The whole set of elements in the navbar starts shifting to the right and it continues infinitely

15.6.1 (24G90) Swift 6.1.2

Answered by krq in 881879022

The problem was using if statements inside ToolbarItem and it leaked outside

That's not something I've seen before.

We would need more information about how these controls are implemented. Are you able to reproduce the issue with a small test project that you can share here?

 Travis

Accepted Answer

The problem was using if statements inside ToolbarItem and it leaked outside

Unwanted animation of navbar controls
 
 
Q