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 @@ -33,6 +33,7 @@ class ViewController: UIViewController {
// See more at FolioReaderConfig.swift
// config.canChangeScrollDirection = false
// config.enableTTS = false
// config.displayTitle = true
// config.allowSharing = false
// config.tintColor = UIColor.blueColor()
// config.toolBarTintColor = UIColor.redColor()
Expand Down
4 changes: 4 additions & 0 deletions Source/FolioReaderCenter.swift
Original file line number Diff line number Diff line change
Expand Up @@ -268,6 +268,10 @@ open class FolioReaderCenter: UIViewController, UICollectionViewDelegate, UIColl

rightBarIcons.append(contentsOf: [font])
navigationItem.rightBarButtonItems = rightBarIcons

if(self.readerConfig.displayTitle){
navigationItem.title = book.title()
}
}

func reloadData() {
Expand Down
3 changes: 3 additions & 0 deletions Source/FolioReaderConfig.swift
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,9 @@ open class FolioReaderConfig: NSObject {

/// Enable TTS (Text To Speech)
open var enableTTS = true

/// Display book title in navbar
open var displayTitle = false

// hide the page indicator
open var hidePageIndicator = false
Expand Down