SwiftUi - Drag item on top of everything. global zIndex

Viewed 352

I have various elements scattered all across the interface. I want to make some buttons draggable and when I drag one, I want it to stay on top of every other element of the interface, not matter where it its, its position, its hierarcy.

How to have a "global zIndex" in SwiftUI that allows to have one element floating over everything else in the interface?

0 Answers
Related