jump to current chapter in horizontal view

This commit is contained in:
Toni Förster
2024-05-11 23:24:17 +02:00
parent 7c50db426f
commit ebc48fde90
2 changed files with 22 additions and 3 deletions

View File

@@ -12,7 +12,10 @@ import SwiftUI
var showThumbnail: Bool
var isCurrentChapter: Bool {
player.currentChapterIndex == chapterIndex
if let currentChapterIndex = player.currentChapterIndex {
return currentChapterIndex == chapterIndex
}
return false
}
var body: some View {