Skip to content
This repository was archived by the owner on Nov 26, 2020. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions Example/Example/ViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion Example/Podfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ DEPENDENCIES:

EXTERNAL SOURCES:
FolioReaderKit:
:path: "../"
:path: ../

SPEC CHECKSUMS:
AEXML: 6fc6433aa35bdc15dd8eb8d54eb7aa4520a010eb
Expand Down
10 changes: 6 additions & 4 deletions Source/FolioReaderCenter.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 3 additions & 0 deletions Source/FolioReaderConfig.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down