feat: improve epub reader controls and annotations

This commit is contained in:
shen
2026-07-12 12:23:10 +08:00
parent 063a493b18
commit 8ccb7157b2
36 changed files with 2959 additions and 2160 deletions
@@ -163,7 +163,11 @@ final class RDEPUBReaderContext {
}
func currentPreferences(pageIndex: Int? = nil) -> RDEPUBPreferences {
environment.currentPreferences(configuration: configuration, pageIndex: pageIndex)
var preferences = environment.currentPreferences(configuration: configuration, pageIndex: pageIndex)
if publication?.requiresSinglePagePresentation == true {
preferences.fixedLayoutSpreadMode = .never
}
return preferences
}
func currentTextContentInsets(pageIndex: Int) -> UIEdgeInsets {