add option to expand vertical chapters by default

This commit is contained in:
Toni Förster
2023-12-04 01:04:39 +01:00
parent d65224320e
commit 600b8d198b
3 changed files with 11 additions and 0 deletions

View File

@@ -191,6 +191,7 @@ struct VideoDetails: View {
@Default(.showScrollToTopInComments) private var showScrollToTopInComments
#endif
@Default(.expandVideoDescription) private var expandVideoDescription
@Default(.expandChapters) private var expandChapters
var body: some View {
VStack(alignment: .leading, spacing: 0) {
@@ -246,6 +247,7 @@ struct VideoDetails: View {
.background(colorScheme == .dark ? Color.black : .white)
.onAppear {
descriptionExpanded = expandVideoDescription
chaptersExpanded = expandChapters
}
}