marcosgriselli / ViewAnimator

ViewAnimator brings your UI to life with just one line

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Is this library compatible with Objective C?

jlubeck opened this issue · comments

I tried using it and the only exposed method for a view is "animateRandomWithInterval"

Thanks

Right now it's not due to the default animations depending on the AnimationType enum which cannot be represented in Objective-C as they use associated values.

From Xcode 6.3 release notes:

Swift Language Enhancements
...
Swift enums can now be exported to Objective-C using the @objc attribute. @objc enums must declare an integer raw type, and cannot be generic or use associated values. Because Objective-C enums are not namespaced, enum cases are imported into Objective-C as the concatenation of the enum name and case name.

Source