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

Spin Animation & Animation Loop #32

Closed
yelled3 opened this issue Feb 26, 2015 · 2 comments
Closed

Spin Animation & Animation Loop #32

yelled3 opened this issue Feb 26, 2015 · 2 comments

Comments

@yelled3
Copy link

yelled3 commented Feb 26, 2015

Hello,
Let me just start and say I'm a really hyped about Spring :-)

I was wondering if there's a way to animate a spinner through storyboard properties. e.g make an image rotate a in a loop.

I did found this in the code:
https://github.com/MengTo/Spring/blob/master/Spring/LoadingView.swift#L30-L36

but I think this kind of simple animation would be easier to customize from a storyboard.

also, in the source code I saw that looping the animation was done via animation.repeatCount = HUGE
shouldn't there just be a flag for animation.repeatsForever = true
which you can toggle from the storyboard

@MengTo WDYT?

@MengTo
Copy link
Owner

MengTo commented Feb 26, 2015

I think it may be simpler to just put repeatCount to 9999 instead of adding an extra field for repeatsForever. That may be a little redundant? :)

The loadingView was meant to be used as a function called before and after data loads. Those events typically happens only in code.

@MengTo
Copy link
Owner

MengTo commented Mar 2, 2015

Let me know if that's okay. I'm closing the topic for now.

@MengTo MengTo closed this as completed Mar 2, 2015
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