Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions App/Features/Onboarding/OnboardingCarouselView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ struct OnboardingCarouselView: View {
.font(.tenxDisplay)
.foregroundStyle(AppColors.textPrimary)
.padding(.bottom, 12)
.accessibilityHidden(true)

Text(step.title)
.font(.tenxTitle)
Expand Down Expand Up @@ -73,11 +74,15 @@ struct OnboardingCarouselView: View {
if stepIndex < steps.count - 1 {
Image(systemName: "chevron.right")
.font(.tenxTinySemibold)
.accessibilityHidden(true)
}
}
.frame(maxWidth: .infinity)
}
.buttonStyle(PrimaryButtonStyle())
.accessibilityHint(stepIndex == steps.count - 1
? "Completes onboarding and opens the app"
: "Advances to the next onboarding step")
.padding(.horizontal, 24)
.padding(.bottom, 32)
}
Expand All @@ -92,6 +97,7 @@ struct OnboardingCarouselView: View {
onComplete()
}
.buttonStyle(GhostButtonStyle())
.accessibilityHint("Skips the remaining onboarding steps")
}
.padding(.horizontal, 24)
.padding(.top, 12)
Expand All @@ -104,6 +110,8 @@ struct OnboardingCarouselView: View {
.animation(.easeInOut(duration: 0.2), value: stepIndex)
}
}
.accessibilityElement(children: .ignore)
.accessibilityLabel("Page \(stepIndex + 1) of \(steps.count)")
}
.padding(.bottom, 12)
}
Expand Down
1 change: 1 addition & 0 deletions App/Features/Onboarding/WelcomeView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ struct WelcomeView: View {
onBegin()
}
.buttonStyle(PrimaryButtonStyle())
.accessibilityHint("Starts the onboarding experience")
.frame(maxWidth: .infinity)

Spacer()
Expand Down
Loading