Skip to content

Commit

Permalink
Merge pull request #993 from Infomaniak/fix-onboarding
Browse files Browse the repository at this point in the history
fix(OnboardingView): Prevent out of bounds
  • Loading branch information
Lnamw committed Sep 25, 2023
2 parents f99a026 + 0afcbcb commit 30de6c1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Mail/Views/Onboarding/OnboardingView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ struct OnboardingView: View {
if !isLastSlide {
MailButton(icon: MailResourcesAsset.fullArrowRight) {
withAnimation {
selection += 1
selection = min(slides.count, selection + 1)
}
}
.mailButtonIconSize(24)
Expand Down

0 comments on commit 30de6c1

Please sign in to comment.