iOS - the description header is a button now

This commit is contained in:
Toni Förster 2023-11-25 21:58:42 +01:00
parent ed5fa8e4aa
commit 6994271eca
No known key found for this signature in database
GPG Key ID: 292F3E5086C83FC7

View File

@ -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 {