From 3ed826a9496a913bf9f015e5a4b2fa1d37e6b612 Mon Sep 17 00:00:00 2001 From: Eugene Yatsenko Date: Mon, 11 Dec 2023 14:22:57 +0100 Subject: [PATCH] chore: add arrow to header section --- .../Outline/CourseExpandableContentView.swift | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Course/Course/Presentation/Outline/CourseExpandableContentView.swift b/Course/Course/Presentation/Outline/CourseExpandableContentView.swift index 7bdd189f9..ee742d727 100644 --- a/Course/Course/Presentation/Outline/CourseExpandableContentView.swift +++ b/Course/Course/Presentation/Outline/CourseExpandableContentView.swift @@ -50,6 +50,14 @@ struct CourseExpandableContentView: View { .lineLimit(1) .foregroundColor(Theme.Colors.textPrimary) Spacer() + if isExpanded { + Image(systemName: "chevron.right") + .foregroundColor(Theme.Colors.accentColor) + .rotationEffect(.degrees(90)) + } else { + Image(systemName: "chevron.right") + .foregroundColor(Theme.Colors.accentColor) + } } .padding(.horizontal, 30) .padding(.vertical, 15)