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