joehinkle11 / Lazy-Pop-SwiftUI

Allows a swipe on any part of the screen to start an interruptible pop animation to the previous view

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Does this work inside sheet()s?

stammy opened this issue · comments

If using NavigationView/Links inside sheet()s today it's not possible to bezel swipe back, would using this enable that?

That would be a cool addition, but I don’t see why it would be needed since sheets are already dismissible with a downward swipe

This is for supporting the scenario where you want page nav inside the sheets, not just dismiss.

For example, imagine having a Settings view inside a sheet, with several of the options in that view requiring navigation links to push in for more options. I would not want to close the sheet, I would want the user to be able to easily bezel swipe back (easier than tapping the back arrow at the very top). If they dismissed the sheet that would mean the user would have to reopen the settings view when they just wanted to go back to the main settings view.

I would imagine this would work already with the current implementation. If I get the chance, I'll try it. If it doesn't work, I'd imagine putting a VC view as the base view of the sheet would fix it