samvermette/SVPullToRefresh — pull request #173 by fabb (2014-01-29 11:12:34+00:00)
Title: Allow Content Inset to be Modified

I have advertising stickies that can dynamically be added to scroll & collection views. When an ad is loaded/removed, I set the content inset of the scroll view. Unfortunately InfiniteScrolling interferes with that, as it stores the original bottom inset once and forever.

As a workaround I added a method to SVInfiniteScrolling and SVPullToRefresh to be able to modify the content insets.

I'm not too happy about this solution, as a client class is disallowed to change contentInset properties directly.
I also tried using KVO, but then SVInfiniteScrolling and SVPullToRefresh would counterwise trigger an infinite KVO storm.

Any other ideas?