Closed notjosh closed 5 years ago
~(Cherry-picked #80 so the example builds)~ rebased! 💅
Fixes #79.
Boundary supplementary items have two contributing contentInsets:
contentInsets
supplementariesFollowContentInsets
This PR does a few things towards that:
true
solver
To illustrate this, we can set some large leading insets to highlight this:
section.contentInsets = NSDirectionalEdgeInsets(top: 0, leading: 50, bottom: 0, trailing: 10) sectionHeader.contentInsets = NSDirectionalEdgeInsets(top: 0, leading: 100, bottom: 0, trailing: 10) sectionFooter.contentInsets = .zero
And then toggling: supplementariesFollowContentInsets gives:
false
Looks good to me. I completely forgot to implement supplementariesFollowContentInsets, Thanks!
supplementariesFollowContentInsets,
~(Cherry-picked #80 so the example builds)~ rebased! 💅
Fixes #79.
Boundary supplementary items have two contributing
contentInsets
:supplementariesFollowContentInsets
is enabled).This PR does a few things towards that:
supplementariesFollowContentInsets
totrue
solver
)supplementariesFollowContentInsets
enabledTo illustrate this, we can set some large leading insets to highlight this:
And then toggling:
supplementariesFollowContentInsets
gives:true
false