Skip to content
This repository has been archived by the owner on Oct 14, 2024. It is now read-only.

Example in swift? #1

Closed
alangue opened this issue Apr 13, 2015 · 2 comments
Closed

Example in swift? #1

alangue opened this issue Apr 13, 2015 · 2 comments

Comments

@alangue
Copy link

alangue commented Apr 13, 2015

Hi @adad184!!!
Very cool stuff you have done!
Can you provide a quick example in swift?
Thanks a lot!!

@adad184
Copy link
Owner

adad184 commented Apr 14, 2015

sorry, I'm not so skilled in swift, but you can bridge it from OC into swift.

you may check these http://stackoverflow.com/questions/24002369/how-to-call-objective-c-code-from-swift

@alangue
Copy link
Author

alangue commented Apr 14, 2015

Thank you for your reply!

I already created the bridge, but it's about the syntax the problem for me...
I don't find the swift equivalent for this part:

anim.animationBlock = ^(double c,double d,double v,id target,MMTweenAnimation animation)
{
UIView *t = (UIView
)target;
t.center = CGPointMake(t.x, v);
};

I'll do my researches ;)

@adad184 adad184 closed this as completed Apr 17, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants