- Rename source module from RDReaderView to RDEpubReaderView - Move all source files from Sources/RDReaderView/ to Sources/RDEpubReaderView/ - Update podspec: RDReaderView.podspec -> RDEpubReaderView.podspec - Update Podfile, demo project, and CocoaPods config for new pod name - Delete old RDReaderView pod support files from ReadViewDemo/Pods - Add new RDEpubReaderView pod support files - Update documentation (API ref, architecture, UML, conventions, etc.) - Add FixedLayoutRotationTests - Update .gitignore: exclude .DS_Store, manual unpack backups, _ssoft-output
35 lines
690 B
Swift
35 lines
690 B
Swift
import Foundation
|
|
|
|
struct RDEPUBReaderUIState {
|
|
|
|
let canToggleBookmark: Bool
|
|
|
|
let hasBookmarkAtCurrentLocation: Bool
|
|
|
|
let canShowBookmarks: Bool
|
|
|
|
let canAddHighlight: Bool
|
|
|
|
let canShowHighlights: Bool
|
|
|
|
let showsTableOfContents: Bool
|
|
|
|
let allowsHighlights: Bool
|
|
|
|
let showsSettingsPanel: Bool
|
|
}
|
|
|
|
extension RDEPUBReaderUIState {
|
|
|
|
static let empty = RDEPUBReaderUIState(
|
|
canToggleBookmark: false,
|
|
hasBookmarkAtCurrentLocation: false,
|
|
canShowBookmarks: false,
|
|
canAddHighlight: false,
|
|
canShowHighlights: false,
|
|
showsTableOfContents: true,
|
|
allowsHighlights: true,
|
|
showsSettingsPanel: true
|
|
)
|
|
}
|