Open eonist opened 8 years ago
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/ http://stylekit.org/blog/2016/02/20/Core-animation/ http://stylekit.org/blog/2016/03/09/Demo-app/
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.