mirror of
https://github.com/yattee/yattee.git
synced 2025-04-27 15:30:33 +05:30
iOS - the description header is a button now
This commit is contained in:
parent
ed5fa8e4aa
commit
6994271eca
@ -410,18 +410,34 @@ struct VideoDetails: View {
|
||||
}
|
||||
|
||||
var descriptionHeader: some View {
|
||||
HStack {
|
||||
Text("Description".localized())
|
||||
Spacer()
|
||||
Button { descriptionExpanded.toggle()
|
||||
} label: {
|
||||
Image(systemName: descriptionExpanded ? "chevron.up" : "chevron.down")
|
||||
.imageScale(.small)
|
||||
#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)
|
||||
}
|
||||
}
|
||||
.padding(.horizontal)
|
||||
.font(.caption)
|
||||
.foregroundColor(.secondary)
|
||||
#elseif canImport(AppKit)
|
||||
HStack {
|
||||
Text("Description".localized())
|
||||
Spacer()
|
||||
Button { descriptionExpanded.toggle()
|
||||
} label: {
|
||||
Image(systemName: descriptionExpanded ? "chevron.up" : "chevron.down")
|
||||
.imageScale(.small)
|
||||
}
|
||||
}
|
||||
.padding(.horizontal)
|
||||
.font(.caption)
|
||||
.foregroundColor(.secondary)
|
||||
#endif
|
||||
}
|
||||
|
||||
var chaptersHeader: some View {
|
||||
|
Loading…
x
Reference in New Issue
Block a user