Dev Design Library

Drag To Dismiss

A modifier that lets a photo, card or sheet follow the drag, then springs it back or tosses it away at the speed of the flick.

Drag To Dismiss preview
Library
SwiftPieces
Framework
SwiftUI
Type
component
License
MIT + Commons Clause
Files
  • registry/swift/motion/DragToDismiss.swift
  • registry/swift/motion/DragToDismiss.mdx
Source
https://github.com/Saivion/SwiftPieces

More from SwiftPieces