I love this effect on apps like Instagram. Back in UIKit, there were a few helpful libraries to pull it off, but there was nothing like it for SwiftUI! So I decided to take it upon myself. Demo gif: https://raw.githubusercontent.com/joehinkle11/Lazy-Pop-SwiftUI/master/demo.gif struct DetailsViewWithLazyPop: View { var body: some View { Text("Lazy pop enabled. Swipe anywhere to dismiss.") .lazyPop() } } All you do it add "LazyPop" after your view and it works! There's also a variant constructor where you can pass it a state to control if the drag is enabled. struct DetailsViewWithToggleableLazyPop: View { @State var isEnabled: Bool = true var body: some View { Toggle(isOn: $isEnabled) { Text("Toggle lazy pop") } .lazyPop(enabled: $isEnabled) } } GitHub: https://github.com/joehinkle11/Lazy-Pop-SwiftUI Original project I forked from: https://github.com/rishi420/SwipeRightToPopController I'm probably going to make a few other changes before I use it in a project of mine. I'm open to suggestions and critique :)


