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

Demo app fixes #182

Merged
merged 1 commit into from
Aug 29, 2022
Merged

Demo app fixes #182

merged 1 commit into from
Aug 29, 2022

Conversation

robinst
Copy link
Contributor

@robinst 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: {
Copy link
Contributor Author

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.

Copy link
Owner

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"]
Copy link
Contributor Author

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 */,
Copy link
Contributor Author

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.

Copy link
Owner

@kaishin kaishin Aug 29, 2022

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!

@kaishin kaishin merged commit 467eee5 into kaishin:master Aug 29, 2022
@robinst robinst deleted the update-demo branch October 16, 2022 11:50
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

Successfully merging this pull request may close these issues.

2 participants