79582467

Date: 2025-04-19 14:02:33
Score: 3
Natty:
Report link

It’s impossible to achieve your goal with a sheet. The best way might be to create your own view that behaves like a sheet. It’s not difficult.

struct Foo: View {
  @State var isSheetVisible = false
  
  var body: some View {
    ZStack {
      if isSheetVisible {
       // your "sheet view" code and animation
      }
      
      YourCutomView() // this view will remain front
    }
    
  }
}

If you have any more questions about this, please let me know.

Reasons:
  • RegEx Blacklisted phrase (2.5): please let me know
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Tornike Despotashvili