mirror of
https://github.com/yattee/yattee.git
synced 2024-11-10 00:08:21 +00:00
iOS - the description header is a button now
This commit is contained in:
parent
ed5fa8e4aa
commit
6994271eca
@ -410,6 +410,21 @@ struct VideoDetails: View {
|
|||||||
}
|
}
|
||||||
|
|
||||||
var descriptionHeader: some View {
|
var descriptionHeader: some View {
|
||||||
|
#if canImport(UIKit)
|
||||||
|
Button(action: {
|
||||||
|
descriptionExpanded.toggle()
|
||||||
|
}) {
|
||||||
|
HStack {
|
||||||
|
Text("Description".localized())
|
||||||
|
Spacer()
|
||||||
|
Image(systemName: descriptionExpanded ? "chevron.up" : "chevron.down")
|
||||||
|
.imageScale(.small)
|
||||||
|
}
|
||||||
|
.padding(.horizontal)
|
||||||
|
.font(.caption)
|
||||||
|
.foregroundColor(.secondary)
|
||||||
|
}
|
||||||
|
#elseif canImport(AppKit)
|
||||||
HStack {
|
HStack {
|
||||||
Text("Description".localized())
|
Text("Description".localized())
|
||||||
Spacer()
|
Spacer()
|
||||||
@ -422,6 +437,7 @@ struct VideoDetails: View {
|
|||||||
.padding(.horizontal)
|
.padding(.horizontal)
|
||||||
.font(.caption)
|
.font(.caption)
|
||||||
.foregroundColor(.secondary)
|
.foregroundColor(.secondary)
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
var chaptersHeader: some View {
|
var chaptersHeader: some View {
|
||||||
|
Loading…
Reference in New Issue
Block a user