How to present a view in SwiftUI on the top of any other view, even if there is already a view presented

I have a SwiftUI app that needs to present a fullScreenCover when the user opens a deep link.

This screen must appear above anything currently shown — even if another fullScreenCover is already being presented.

In UIKit, I can achieve this by walking the view controller hierarchy, finding the top-most view controller, and presenting the new full-screen view from there.

What is the recommended way to reproduce this behavior in SwiftUI?

How can I ensure a fullScreenCover is always shown above the current presentation layer, regardless of the app’s UI state?

How to present a view in SwiftUI on the top of any other view, even if there is already a view presented
 
 
Q