Post

Replies

Boosts

Views

Activity

Reply to Detect SwiftUI modal style presentation
Hi everyone. I found a solution. In a full-screen cover presentation, always a top safe area is not equal to zero. In a usual sheet, the top safe area is always zero. (I didn't test it with detents and a drag indicator, in the last case logically the safe area should be different from zero), The workaround is to use a geometry reader to get the safe area and then apply a conditional view o whatever you need. I hope it helps you.
Feb ’23