-
Notifications
You must be signed in to change notification settings - Fork 101
-
Notifications
You must be signed in to change notification settings - Fork 101
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
Weird conditional #145
Comments
Hmm, good question. I think it is a typo, but I'm not sure about the rest. @marcelofabri what do you think? |
This looks weird in fact. I think it should be |
It's appear to be really a typo. Please change it to But I do believe that adding But feel free to change anything! Just run the test on iOS 9, if it pass it's OK. If you find another solution I will be very glad (I really don't like this bug fix, it's a ugly |
Issue #145 fixed check to use both height and width instead of just width
I think we can close this as #145 solved |
Is this a typo where the second condition is meant to be
height
instead ofwidth
?https://github.com/ashfurrow/Nimble-Snapshots/blob/master/DynamicSize/DynamicSizeSnapshot.swift#L71
Updating this with a secondary query. A few lines before this
layoutIfNeeded()
is called, however assetNeedsLayout()
is not called first it is almost guaranteed that the conditionalview.bounds.width != size.width
will fail.So then my question really changes to: can this entire "iOS 9+ BUG" hack be avoided by tripping the
setNeedsLayout()
flag instead?The text was updated successfully, but these errors were encountered: