[x] I've been mindful about doing atomic commits, adding documentation to my changes, not refactoring too much.
[x] I've a descriptive title and added any useful information for the reviewer. Where appropriate, I've attached a screenshot and/or screencast (gif preferrably).
[ ] I've written tests to cover the new code and functionality included in this PR.
This fixes the issue for non-inverted table views when navigation bar was overlaying it. It was caused by _tableView.contentInsetAdjustmentBehavior being set to UIScrollViewContentInsetAdjustmentNever. I added a new method slk_updateInsetAdjustmentBehavior which updates adjustment behavior when isInverted field is mutated and sets an appropriate adjustment type based on the new value.
PR Summary
This fixes the issue for non-inverted table views when navigation bar was overlaying it. It was caused by
_tableView.contentInsetAdjustmentBehavior
being set toUIScrollViewContentInsetAdjustmentNever
. I added a new methodslk_updateInsetAdjustmentBehavior
which updates adjustment behavior whenisInverted
field is mutated and sets an appropriate adjustment type based on the new value.Related Issues
Fixes #642 Related to change from #631