更新阅读器功能与示例
This commit is contained in:
@@ -72,6 +72,11 @@ final class RDEPUBReaderContext {
|
||||
set { state.activeHighlights = newValue }
|
||||
}
|
||||
|
||||
var transientHighlights: [RDEPUBHighlight] {
|
||||
get { state.transientHighlights }
|
||||
set { state.transientHighlights = newValue }
|
||||
}
|
||||
|
||||
var currentBookIdentifier: String? {
|
||||
get { state.currentBookIdentifier }
|
||||
set { state.currentBookIdentifier = newValue }
|
||||
|
||||
@@ -20,6 +20,9 @@ final class RDEPUBReaderState {
|
||||
|
||||
var activeHighlights: [RDEPUBHighlight] = []
|
||||
|
||||
// Session-only decorations (for search/AI focus) are never persisted.
|
||||
var transientHighlights: [RDEPUBHighlight] = []
|
||||
|
||||
var currentBookIdentifier: String?
|
||||
|
||||
var paginationToken = UUID()
|
||||
|
||||
Reference in New Issue
Block a user