-
Notifications
You must be signed in to change notification settings - Fork 279
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
Demo app fixes #182
Demo app fixes #182
Conversation
robinst
commented
Aug 24, 2022
- Fix swipe action (second file wasn't included in project)
- Fix showing label about GIF info
- Include third test GIF in demo as well (why not?)
- Fix swipe action (second file wasn't included in project) - Fix showing label about GIF info - Include third test GIF in demo as well (why not?)
@@ -40,7 +39,7 @@ class ViewController: UIViewController { | |||
} | |||
|
|||
func animate() { | |||
imageView.animate(withGIFNamed: currentGIFName, animationBlock: { | |||
imageView.animate(withGIFNamed: currentGIFName, preparationBlock: { |
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.
animationBlock
is never run because the GIF loops indefinitely. animationBlock
is only called once the whole animation has finished. With preparationBlock
it works as intended.
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.
Nice catch!
currentGIFName = "earth" | ||
default: | ||
currentGIFName = "mugen" | ||
let gifs = ["mugen", "earth", "nailed"] |
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.
Cycle through all three GIFs (why not).
@@ -149,7 +153,9 @@ | |||
9D98823A19BC69CA00B790C6 /* Supporting Files */ = { | |||
isa = PBXGroup; | |||
children = ( | |||
A5D726E728B53C0800821347 /* earth.gif */, |
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.
Hard to review this change but before, only the mugen.gif
was included in the files so swiping in the demo app didn't work.
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.
I was only trying the first one in my manual regression tests so never noticed. Thanks!