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 cell separators on iPad #21

Merged
merged 1 commit into from Feb 6, 2018
Merged

Conversation

simonmitchell
Copy link
Contributor

Wraps view height check in brackets to fix cell separators never displaying

on iPad...
turns out on iPad cell separators are 1pt high rather than hairline width
(1 pixel high) which mean that this was only affecting iPad. The brackets
make sure our boolean logic is applied in the way we expected:

if !shouldDisplaySeparators && is1PixelOrPointHigh

rather than:

if (!shouldDisplaySeparators && is1PixelHigh) || is1PointHight

…laying

on iPad...
turns out on iPad cell separators are 1pt high rather than hairline width
(1 pixel high) which mean that this was only affecting iPad. The brackets
make sure our boolean logic is applied in the way we expected:

if !shouldDisplaySeparators && is1PixelOrPointHigh

rather than:

if (!shouldDisplaySeparators && is1PixelHigh) || is1PointHight
@MattCheetham
Copy link
Contributor

Thumbs up

@simonmitchell simonmitchell merged commit 483bee2 into feature/swift Feb 6, 2018
@simonmitchell simonmitchell deleted the fix/cell_separators branch February 6, 2018 16:21
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.

None yet

2 participants