frederik_diamond on Nostr: I had to switch from wrapping everything in a Button to using a ZStack instead. I ...
I had to switch from wrapping everything in a Button to using a ZStack instead.
I could not get the dragging functionality to work when using the Button, but now, at least it sort of works. The UX is still a bit rough.
Notice how, sometimes the position is incorrect.
For instance, if I drag the first tab and release it on tab number three, then I want tab one and three to switch places. But instead, sometimes the application might switch tab one and two instead of tab one and three.
Also, there is a bug that makes it impossible to switch a tab with the last tab (right-most position).
The last annoying bug is that the user must double click and then hold in order to drag the tab.
It should be possible to just click and hold to drag the tab. This currently does not work. Instead, the whole app window will start moving as can be seen in the video. I tried setting `mouseDownCanMoveWindow` to false, but it did not make a difference. #dev #Swift
I could not get the dragging functionality to work when using the Button, but now, at least it sort of works. The UX is still a bit rough.
Notice how, sometimes the position is incorrect.
For instance, if I drag the first tab and release it on tab number three, then I want tab one and three to switch places. But instead, sometimes the application might switch tab one and two instead of tab one and three.
Also, there is a bug that makes it impossible to switch a tab with the last tab (right-most position).
The last annoying bug is that the user must double click and then hold in order to drag the tab.
It should be possible to just click and hold to drag the tab. This currently does not work. Instead, the whole app window will start moving as can be seen in the video. I tried setting `mouseDownCanMoveWindow` to false, but it did not make a difference. #dev #Swift