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

Commit

Permalink
Merge pull request #196 from EmersonCarpes/master
Browse files Browse the repository at this point in the history
Create variable hidePageIndicator to hide page indicator.
  • Loading branch information
hebertialmeida authored Jan 10, 2017
2 parents 325e5fc + 2cfa743 commit 6ee39d2
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 5 deletions.
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

0 comments on commit 6ee39d2

Please sign in to comment.