Skip to content

Commit cb07141

Browse files
Merge pull request #2551 from CruGlobal/GT-2559-Lesson-Completion-Text-Lines
GT-2559 move lesson completion progress text below bar
2 parents 39b54ad + 6e59fa5 commit cb07141

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

godtools/App/Features/Lessons/Presentation/Lessons/Subviews/LessonCard/LessonCardView.swift

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -56,18 +56,21 @@ struct LessonCardView: View {
5656

5757
FixedVerticalSpacer(height: 9)
5858

59+
if viewModel.shouldShowLessonProgress {
60+
LessonCompletionProgressBar(lessonProgress: viewModel.lessonProgress)
61+
.padding(.bottom, 15)
62+
63+
} else {
64+
Spacer()
65+
}
66+
5967
HStack(alignment: .center, spacing: 10) {
6068

6169
Text(viewModel.completionString)
6270
.font(FontLibrary.sfProDisplayRegular.font(size: 12))
6371
.foregroundColor(ColorPalette.gtBlue.color)
6472

65-
if viewModel.shouldShowLessonProgress {
66-
LessonCompletionProgressBar(lessonProgress: viewModel.lessonProgress)
67-
.padding(.bottom, 5)
68-
} else {
69-
Spacer()
70-
}
73+
Spacer()
7174

7275
ToolCardLanguageAvailabilityView(
7376
languageAvailability: viewModel.appLanguageAvailability

0 commit comments

Comments
 (0)