mirror of
https://github.com/yattee/yattee.git
synced 2025-08-09 20:24:06 +00:00
jump to current chapter in horizontal view
This commit is contained in:
@@ -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 {
|
||||
|
Reference in New Issue
Block a user