Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

When Hero enabled, self.view.alpha is always 1 #34

Closed
Tibb opened this issue Jan 10, 2017 · 3 comments
Closed

When Hero enabled, self.view.alpha is always 1 #34

Tibb opened this issue Jan 10, 2017 · 3 comments

Comments

@Tibb
Copy link

Tibb commented Jan 10, 2017

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!

@Tibb Tibb changed the title When Hero enabled, the self.view.alpha is always 1 When Hero enabled, self.view.alpha is always 1 Jan 10, 2017
@lkzhao
Copy link
Collaborator

lkzhao commented Jan 10, 2017

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.

@lkzhao
Copy link
Collaborator

lkzhao commented Feb 12, 2017

This is fixed in 0.3.0.

@lkzhao lkzhao closed this as completed Feb 12, 2017
@Tibb
Copy link
Author

Tibb commented Feb 13, 2017

Great news, thanks a lot!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants