79764581

Date: 2025-09-14 21:17:04
Score: 1.5
Natty:
Report link

Workaround solution for using UIKit APIs from SwiftUI
https://gist.github.com/kamanov/3dff69fabb6deacf7fb749d47e3f5088

For example, to allow only horizontal swipe-to-dismiss:

DetailsView()
    .navigationTransition(.zoom(sourceID: sourceID, in: namespace))
    .zoomInteractiveDismissShouldBegin {
        $0.velocity.dy == 0
    }
Reasons:
  • Probably link only (1):
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: karama