-
Notifications
You must be signed in to change notification settings - Fork 14
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
CADisplayLink? #3
Comments
I first read about the implications of CADisplayLink here: https://blog.bigspaceship.com/the-holy-grail-of-ios-animation-intervals-e9e663ea93c4 Pretty good article. I recently implemented the CVDisplayLink which is the macOS equivalent. |
Hey @eonist, thanks for the issue.
I'll read more about CADisplayLink, do you have a link to your macOS project? 😊 |
Thanks for the reply/answers! I have a few blog posts about the AnimLib I've built for macOS: http://stylekit.org/blog/2016/02/24/CVDisplayLink/ And here is the AnimLib (the important class being Animator.swift) https://github.com/eonist/swift-utils/tree/master/misc/animation In the example bellow, a clock pointer rotates 3 times: let line:LineGraphic = addSubView(LineGraphic())
let animator = LoopingAnimator(Animation.sharedInstance,3,1,0,1,progress,Easing.easeLinear)
func progress(value:CGFloat){
let angle = π * 2 * value
line.p2 = line.p1.polarPoint(50,angle)
line.draw()
}
animator.start() The reason I asked about your lib was in terms of Interaction + animation which seems to be the tricky part. I want to attempt something similar for iOS, but looking through what other people has made first. Let me know if something is unclear with CADisplayLink. I'd be happy to help. |
Hey, im lending som inspiration from your walker lib. Really liked the chaining you used. https://github.com/eonist/Element-iOS/wiki/anim-lib-ios |
Hey,
First of all Awesome concept!
Couple of questions:
Thanks.
The text was updated successfully, but these errors were encountered: