Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to dissapear view when swipe image around ? #2

Open
X901 opened this issue Aug 15, 2022 · 1 comment
Open

How to dissapear view when swipe image around ? #2

X901 opened this issue Aug 15, 2022 · 1 comment

Comments

@X901
Copy link

X901 commented Aug 15, 2022

Hi,
great library !
it will be awesome if you add swipe image to close view
and add cloce button to close ImagePreviewer

@Lebron1992
Copy link
Owner

@X901 Good suggestions.

  1. For the swipe action, I will add it later.
  2. For the close button, you could add it by yourself with ZStack like this:
ZStack(alignment: .topTrailing) {
  LBJUIImagePreviewer(uiImage: uiImage)
  Button("Close") {
    // the close action
  }
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants