diff --git a/Example/Example/ViewController.swift b/Example/Example/ViewController.swift index 093e199af..3fa3cfea3 100755 --- a/Example/Example/ViewController.swift +++ b/Example/Example/ViewController.swift @@ -43,6 +43,7 @@ class ViewController: UIViewController { // config.toolBarBackgroundColor = UIColor.purpleColor() // config.menuTextColor = UIColor.brownColor() // config.menuBackgroundColor = UIColor.lightGrayColor() +// config.hidePageIndicator = true // Custom sharing quote background let customImageQuote = QuoteImage(withImage: UIImage(named: "demo-bg")!, alpha: 0.6, backgroundColor: UIColor.black) diff --git a/Example/Podfile.lock b/Example/Podfile.lock index 1151bf6b9..4fbc70f6d 100644 --- a/Example/Podfile.lock +++ b/Example/Podfile.lock @@ -28,7 +28,7 @@ DEPENDENCIES: EXTERNAL SOURCES: FolioReaderKit: - :path: "../" + :path: ../ SPEC CHECKSUMS: AEXML: 6fc6433aa35bdc15dd8eb8d54eb7aa4520a010eb diff --git a/Source/FolioReaderCenter.swift b/Source/FolioReaderCenter.swift index 024e29f74..d1f656b6b 100755 --- a/Source/FolioReaderCenter.swift +++ b/Source/FolioReaderCenter.swift @@ -163,10 +163,12 @@ open class FolioReaderCenter: UIViewController, UICollectionViewDelegate, UIColl configureNavBar() // Page indicator view - pageIndicatorView = FolioReaderPageIndicator(frame: self.frameForPageIndicatorView()) - if let pageIndicatorView = pageIndicatorView { - view.addSubview(pageIndicatorView) - } + if !readerConfig.hidePageIndicator { + pageIndicatorView = FolioReaderPageIndicator(frame: self.frameForPageIndicatorView()) + if let pageIndicatorView = pageIndicatorView { + view.addSubview(pageIndicatorView) + } + } scrollScrubber = ScrollScrubber(frame: self.frameForScrollScrubber()) scrollScrubber?.delegate = self diff --git a/Source/FolioReaderConfig.swift b/Source/FolioReaderConfig.swift index 6ede9a8f3..57aaed84d 100755 --- a/Source/FolioReaderConfig.swift +++ b/Source/FolioReaderConfig.swift @@ -149,6 +149,9 @@ open class FolioReaderConfig: NSObject { /// Enable TTS (Text To Speech) open var enableTTS = true + // hide the page indicator + open var hidePageIndicator = false + // MARK: Quote image share /// Custom Quote logo