swiftui-image-viewer
swiftui-image-viewer copied to clipboard
The imageViewer should stay on zoomed scale value and should be closed with zooming when scale is 1
Is your feature request related to a problem? Please describe.
This is more about user interface consistence with Apples'. It was the nice gesture of the Apple's photos to dismiss full view with zoom out.
Describe the solution you'd like
- The view can be zoomed in and when the magnification gesture is ended, the scaling stays - currently goes back to 1
- If the scale is already larger than 1, the view can be zoomed out to scale 1 whatever the .ended result is .
- The view can be dismissed if the current scale is 1 and zoomed out.
- No need to button.
Additional context
I'm currently using this in fullScreenCover since overlay is problematic with navigation stacks.