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

Fixes a bug when presenting NYTPhotoViewer from a subview of UIStackView #104

Conversation

mbbischoff
Copy link
Contributor

What it Does

Switches the animated and interactive transition from using hidden to alpha.

Using hidden to control the visibility of UIView’s contained in UIStackView has the side effect of affecting the layout of items within the stack view. Setting the view’s alpha does not have this
effect.

How to Test

  1. Embed the Image Button in the sample project inside a UIStackView including other views.
  2. Tap on the Image Button and confirm that the animated presentation and dismissal go to and from the correct frame.

cc @bcapps who co-authored this patch.

…to `alpha`.

Using `hidden` to control the visibility of `UIView`’s contained in
`UIStackView` has the side effect of affecting the layout of items
within the stack view. Setting the view’s `alpha` does not have this
effect.
@mbbischoff
Copy link
Contributor Author

@cdzombak Any thoughts on this changeset?

@cdzombak
Copy link
Contributor

cdzombak commented Jan 4, 2016

Using hidden to control the visibility of UIView’s contained in UIStackView has the side effect of affecting the layout of items within the stack view.

/me grumbles

cdzombak added a commit that referenced this pull request Jan 4, 2016
…d-of-hidden

Fixes a bug when presenting NYTPhotoViewer from a subview of UIStackView
@cdzombak cdzombak merged commit ed5f867 into nytimes:develop Jan 4, 2016
@soundsokay
Copy link
Contributor

Was taking a look at this when @cdzombak merged it. Looks good. Tests fine. 👍

@cdzombak
Copy link
Contributor

cdzombak commented Jan 4, 2016

oh, sorry, @soundsokay :)

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.

3 participants