-
-
Notifications
You must be signed in to change notification settings - Fork 286
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Implementation of #112 (support contentMode .scaleAspectFit) #113
Implementation of #112 (support contentMode .scaleAspectFit) #113
Conversation
* Add file ImageViewerTransitionPresentationManager * Update to use new Carthage xcframeworks for SDWebImage * Remove copy frameworks build phase
…nimations) * Explicitly set imageContentMode in the init * Close button to do a normal dismiss which does the transition animation * Minor clean up
}) { _ in | ||
self.dismiss(animated: false, completion: completion) | ||
} | ||
self.dismiss(animated: true, completion: nil) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This actually allows for the animation transition to run and it looks really nice!
Stale pull request message |
It's a bummer that such valuable change was closed and not even responded 2 years later. |
@thomasdelgado @jangelsb i’m sorry if i missed this pr. I’m reopening this. Thank you |
this pr is looking good, created #125 this pr instead for resolving some git conflicts and some minor modifications. thank you so much. |
Sweet! I am glad it got merged in and is hopefully helpful for others 😊 |
Fixes #112
First two commits were me getting the code to compile locally on an M1 MacBookPro
Add the ability to pass in a contentMode in the ImageViewerOptions
Demo of customizing the contentMode to
.scaleAspectFit
and new close animation:https://user-images.githubusercontent.com/11953370/103055533-583c1e80-454f-11eb-93fb-cebc596ec022.mp4