Hero: When Hero enabled, self.view.alpha is always 1

Created on 10 Jan 2017  路  3Comments  路  Source: HeroTransitions/Hero

I wanted to add some Hero beautiful transitions between 2 controllers. The destination controller isn't completely opaque (alpha = 0.9), to let you see the original controller behind.
In this case, here are segue parameters:
Kind: present modally
Presentation: Over current Context
Transition: Default

But using Hero set self.view.alpha to 1.0 at the end of the transition.
I just added Hero on a button, with the following modifier: zPosition(2)

Is it possible to keep some transparency using Hero?
Thanks!

WIP enhancement

Most helpful comment

This is fixed in 0.3.0.

All 3 comments

Hero shouldn't have set the view's alpha to 1. But might be a bug. Nonetheless, it is complicated. The current cross fade strategy doesn't work with alphas. I have to spent some time experimenting with other way of creating cross fade effects.

This is fixed in 0.3.0.

Great news, thanks a lot!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

joeljfischer picture joeljfischer  路  3Comments

brendan-guegan-orange picture brendan-guegan-orange  路  4Comments

josmanperez picture josmanperez  路  3Comments

nasht picture nasht  路  3Comments

czater picture czater  路  3Comments