Skip to content
This repository has been archived by the owner on Nov 26, 2020. It is now read-only.

Commit

Permalink
Fix iOS 11 auto adjust inset bug and closes #332 #312 #261
Browse files Browse the repository at this point in the history
  • Loading branch information
hebertialmeida committed May 24, 2018
1 parent b592c9c commit 0f161dd
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Source/FolioReaderCenter.swift
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,10 @@ open class FolioReaderCenter: UIViewController, UICollectionViewDelegate, UIColl
enableScrollBetweenChapters(scrollEnabled: true)
view.addSubview(collectionView)

if #available(iOS 11.0, *) {
collectionView.contentInsetAdjustmentBehavior = .never
}

// Activity Indicator
self.activityIndicator.activityIndicatorViewStyle = .gray
self.activityIndicator.hidesWhenStopped = true
Expand Down

0 comments on commit 0f161dd

Please sign in to comment.