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

reset the dismissing view's backgroundColor's alpha to 1.0 after pan-to-dismiss #215

Conversation

zadr
Copy link

@zadr zadr commented Sep 22, 2016

When dismissing a photos vc, the dismissal interaction sets the background alpha to 0.0, so if you have a photo viewer cached, and want to present it multiple times, the background alpha will be set to 0.0 on the second, third, …th presentation.

(to reproduce:

  1. have a vc with photo models and a NYTPhotosViewController property
  2. present the photos vc to show a photo
  3. let someone flick-to-dismiss the photo
  4. present another photo using the same photos vc

the background of the photos vc is missing after it finishes presenting due to step 4)

I'm not positive if this is the best way to fix the bug -- someone could have a background color with an alpha of something other than 1.0 set, but there's existing code in the same method that also seems to assume we're targeting an alpha of 1.0, so, this seemed like a safe place to start the discussion.

@zadr
Copy link
Author

zadr commented Sep 23, 2016

it looks like this is a different approach to fixing #39 than what #185 takes (but, if i understand correctly, is closer to what @bcapps describes as being a good fix for the issue?)

@zadr zadr closed this Mar 13, 2017
@zadr zadr deleted the fix-background-alpha-when-re-presenting branch March 13, 2017 23:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant