London Escorts sunderland escorts 1v1.lol unblocked yohoho 76 https://www.symbaloo.com/mix/yohoho?lang=EN yohoho https://www.symbaloo.com/mix/agariounblockedpvp https://yohoho-io.app/ https://www.symbaloo.com/mix/agariounblockedschool1?lang=EN
8.4 C
New York
Monday, November 25, 2024

ios – Disable Interactive Dismissal of Navigation Transitions in SwiftUI


I’m utilizing the brand new navigationTransitionStyle(.zoom(id, namespace)) to zoom from a view preview to a element view in my swiftUI app.

My difficulty is that I’ve a snapping scrollView within the element view, that when customers attempt to swipe to attenuate, by accident dismisses the complete detailView. I would really like, in impact, to disable this ‘pull all the way down to dismiss’ habits of the brand new transition type.

Tried Options

  • I observed that making use of a .highPriorityGesture( DragGesture() ) prevents the interplay, nonetheless, making use of that onto my detailView disables the first vertical scrollView, which isn’t good. I’ve tried to programmatically apply the gesture, however am not in a position to get an answer working
  • .interactiveDismissDisabled(true) doesn’t work for .navigationTransitionStyle
  • .navigationBarBackButtonHidden(true) doesn’t disable the pull down dismiss habits for the brand new zoom transition because it does for the swipe dismiss habits within the previous slide navigation transition. See this put up
  • Setting .dragGesture(minimumDistance: 15) as instructed on this put up appropriately allows the ScrollView, however doesn’t block out the swipe Dismiss habits
  • Utilizing .highPriorityGesture( LongPressGesture(minDuration: 0) ) has the identical impact because the drag gesture, in that it disables each the swipe dismiss habits and the scrollView

I’m starting to suppose there isn’t a solution to disable this gesture, but when anyone is aware of a approach, or a workaround that will let me use my scrollView with this new transition, I might be very glad

Related Articles

Social Media Auto Publish Powered By : XYZScripts.com