Don't adjust inset when fully zoomed in.

On iOS11, when looking at the full-screen media details, if you'd zoomed
far enough that the media content is behind the status bar, tapping to
hide the status bar would cause an undesirable change in content offset.

// FREEBIE
pull/1/head
Michael Kirk 7 years ago
parent e0294b238f
commit c6e5d4369b

@ -250,7 +250,12 @@ NS_ASSUME_NONNULL_BEGIN
scrollView.showsVerticalScrollIndicator = NO;
scrollView.showsHorizontalScrollIndicator = NO;
scrollView.decelerationRate = UIScrollViewDecelerationRateFast;
self.automaticallyAdjustsScrollViewInsets = NO;
if (@available(iOS 11.0, *)) {
scrollView.contentInsetAdjustmentBehavior = UIScrollViewContentInsetAdjustmentNever;
} else {
self.automaticallyAdjustsScrollViewInsets = NO;
}
[scrollView autoPinToSuperviewEdges];

Loading…
Cancel
Save