8000 Fix display of empty headers on iOS 11 by nealyoung · Pull Request #108 · venmo/Static · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Fix display of empty headers on iOS 11 #108

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

Merged
merged 1 commit into from
Aug 8, 2017

Conversation

nealyoung
Copy link
Contributor

Makes viewHeight on Extremity non-optional and nil-coalesces to a height of 0 for nil section extremities - fixes #105.

@hyperspacemark
Copy link
Contributor
hyperspacemark commented Aug 8, 2017

Looks good to me. Thanks, @nealyoung!

@hyperspacemark hyperspacemark merged commit 2071110 into venmo:master Aug 8, 2017
var viewHeight: CGFloat {
switch self {
case .title: return UITableViewAutomaticDimension
case .view(let extremityView): return extremityView.bounds.height
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This now loses auto-sizing for view extremities does it not?

dmiluski pushed a commit to dmiluski/Static that referenced this pull request Aug 29, 2017
…fix"

This reverts commit 2071110, reversing
changes made to e002d86.
rhaining pushed a commit that referenced this pull request Oct 4, 2017
* Revert "fixes footer and header heights on ios 11 to be automatic dimension if the view returns as 0 (#109)"

This reverts commit 319a8b8.

* Revert "Merge pull request #108 from nealyoung/extremity-height-fix"

This reverts commit 2071110, reversing
changes made to e002d86.

* Bugfix: SectionFooterView AutoDimension Support

Problem:
1. I noticed our app was manually laying out subviews in our sectionFooters when I didn't see the need to.

2. After recent changes, Group tableView's which had nil section extremity defaulted to zero, which drops the standard spacing between sections. Note in attatchment.

Notable info:
Statics currently has deploy target of iOS8, which did not yet support automatic sectionFooterView dimensioning.

Solution:
- Offer autosizing option which uses UITableViewAutomaticDimension rather than view's original bounds height. Retain original .view(_) case in the event some clients were already sizing beforehand limiting integration breaks. This also offers automatic margin adherence.
- Bump deploy target to iOS9 for clean integration.
- Revert 2 previous PRs
- Default height for plain/grouped styles to play friendly with tableView's defaults.

* Example: AutoSized Extremity
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.

Blank section headers are displayed under iOS 11
4 participants
0