mirror of
https://github.com/yattee/yattee.git
synced 2025-08-06 10:44:06 +00:00
new SeekType chapterSkip
When a user taps on a chapter, the pop now also shows the name of the chapter. The chapters are now marked in AppRedColor instead of orange. This is based on PR #639 That one needs to be merged first before this one can go in.
This commit is contained in:
@@ -15,7 +15,7 @@ import SwiftUI
|
||||
|
||||
var body: some View {
|
||||
Button(action: {
|
||||
player.backend.seek(to: chapter.start, seekType: .userInteracted)
|
||||
player.backend.seek(to: chapter.start, seekType: .chapterSkip(chapter.title))
|
||||
}) {
|
||||
Group {
|
||||
verticalChapter
|
||||
@@ -72,7 +72,7 @@ import SwiftUI
|
||||
|
||||
var body: some View {
|
||||
Button {
|
||||
player.backend.seek(to: chapter.start, seekType: .userInteracted)
|
||||
player.backend.seek(to: chapter.start, seekType: .chapterSkip(chapter.title))
|
||||
} label: {
|
||||
Group {
|
||||
horizontalChapter
|
||||
|
Reference in New Issue
Block a user