task 8: add readingMode field to StoredBook, default to scroll
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -11,6 +11,7 @@ public class StoredBook {
|
|||||||
public var lastPosition: Int
|
public var lastPosition: Int
|
||||||
public var lastRead: Date?
|
public var lastRead: Date?
|
||||||
public var voiceName: String?
|
public var voiceName: String?
|
||||||
|
public var readingMode: String?
|
||||||
|
|
||||||
public init(
|
public init(
|
||||||
bookID: UUID = UUID(),
|
bookID: UUID = UUID(),
|
||||||
@@ -20,7 +21,8 @@ public class StoredBook {
|
|||||||
dateAdded: Date = .now,
|
dateAdded: Date = .now,
|
||||||
lastPosition: Int = 0,
|
lastPosition: Int = 0,
|
||||||
lastRead: Date? = nil,
|
lastRead: Date? = nil,
|
||||||
voiceName: String? = nil
|
voiceName: String? = nil,
|
||||||
|
readingMode: String? = "scroll"
|
||||||
) {
|
) {
|
||||||
self.bookID = bookID
|
self.bookID = bookID
|
||||||
self.title = title
|
self.title = title
|
||||||
@@ -30,5 +32,6 @@ public class StoredBook {
|
|||||||
self.lastPosition = lastPosition
|
self.lastPosition = lastPosition
|
||||||
self.lastRead = lastRead
|
self.lastRead = lastRead
|
||||||
self.voiceName = voiceName
|
self.voiceName = voiceName
|
||||||
|
self.readingMode = readingMode
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user