mirror of
https://github.com/yattee/yattee.git
synced 2025-04-28 16:00:33 +05:30
iOS - chapters header is a button now
This commit is contained in:
parent
a33a1d7658
commit
b0d81cdefd
@ -442,6 +442,21 @@ struct VideoDetails: View {
|
|||||||
}
|
}
|
||||||
|
|
||||||
var chaptersHeader: some View {
|
var chaptersHeader: some View {
|
||||||
|
#if canImport(UIKit)
|
||||||
|
Button(action: {
|
||||||
|
chaptersExpanded.toggle()
|
||||||
|
}) {
|
||||||
|
HStack {
|
||||||
|
Text("Chapters".localized())
|
||||||
|
Spacer()
|
||||||
|
Image(systemName: chaptersExpanded ? "chevron.up" : "chevron.down")
|
||||||
|
.imageScale(.small)
|
||||||
|
}
|
||||||
|
.padding(.horizontal)
|
||||||
|
.font(.caption)
|
||||||
|
.foregroundColor(.secondary)
|
||||||
|
}
|
||||||
|
#elseif canImport(AppKit)
|
||||||
HStack {
|
HStack {
|
||||||
Text("Chapters".localized())
|
Text("Chapters".localized())
|
||||||
Spacer()
|
Spacer()
|
||||||
@ -453,6 +468,7 @@ struct VideoDetails: View {
|
|||||||
.padding(.horizontal)
|
.padding(.horizontal)
|
||||||
.font(.caption)
|
.font(.caption)
|
||||||
.foregroundColor(.secondary)
|
.foregroundColor(.secondary)
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user