Right now there's no simple way to do this. Here's a somewhat hackey solution.
create a GestureState at the top of your view
@GestureState private var dragOffset = CGSize.zero
then add this to whatever you want to enable swipe-to-go-back functionality on!
Group {
Text("The entire View I want to enable swipe-to-go-back functionality on")
}
.gesture(DragGesture().updating($dragOffset, body: { (value, state, transaction) in
		 if(value.startLocation.x < 20 &&
value.translation.width > 100) {
				 self.presentationMode.wrappedValue.dismiss()
		 }
})
good luck!
Post
Replies
Boosts
Views
Activity
I'm seeing the same thing. Did you ever get this resolved?