HeroTransitions / Hero

Elegant transition library for iOS & tvOS
https://HeroTransitions.github.io/Hero/
MIT License
22.02k stars 1.72k forks source link

Using Hero Modal Animation Type String #673

Closed arashnrim closed 4 years ago

arashnrim commented 4 years ago

Hi there,

I've been using Hero for a while now (almost all of my iOS projects so far!), and I've been thinking whether it's possible to use the Modal Animation Type String text field in the Attributes inspector to denote the kind of animation playing.

I refer to issue #441, which also uses the Modal Animation Type String text field; however, when I tried it, the expected animation doesn't play. Instead, the default fade animation comes into play.

What are some of the valid inputs for this field? All help is appreciated, thanks!

arashnrim commented 4 years ago

Hello again!

I've been experimenting and it appears that, just as suggested, the field accepts inputs of animations just as you would with code. While not extensive, I've discovered that the following inputs work:

I'd like to recommend updating the Wiki/other documentation for clarity on the Hero Modal Animation Type String field. Hope this helps!