From ef6f9eeefcc2dfd09aeb5bad8b619f591e0e3056 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Felix=20F=C3=B6rtsch?= Date: Sat, 14 Mar 2026 05:36:09 +0100 Subject: [PATCH] task 8: add readingMode field to StoredBook, default to scroll Co-Authored-By: Claude Sonnet 4.6 --- VorleserKit/Sources/Storage/StoredBook.swift | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/VorleserKit/Sources/Storage/StoredBook.swift b/VorleserKit/Sources/Storage/StoredBook.swift index a59e632..11c4c4b 100644 --- a/VorleserKit/Sources/Storage/StoredBook.swift +++ b/VorleserKit/Sources/Storage/StoredBook.swift @@ -11,6 +11,7 @@ public class StoredBook { public var lastPosition: Int public var lastRead: Date? public var voiceName: String? + public var readingMode: String? public init( bookID: UUID = UUID(), @@ -20,7 +21,8 @@ public class StoredBook { dateAdded: Date = .now, lastPosition: Int = 0, lastRead: Date? = nil, - voiceName: String? = nil + voiceName: String? = nil, + readingMode: String? = "scroll" ) { self.bookID = bookID self.title = title @@ -30,5 +32,6 @@ public class StoredBook { self.lastPosition = lastPosition self.lastRead = lastRead self.voiceName = voiceName + self.readingMode = readingMode } }