Use consistent padding on action buttons.

This commit is contained in:
Doug
2022-03-31 11:30:05 +01:00
parent 512f498ff1
commit a870a9a033
4 changed files with 5 additions and 2 deletions
@@ -127,6 +127,7 @@ struct AnalyticsPrompt: View {
buttons
.frame(maxWidth: OnboardingMetrics.maxContentWidth)
.padding(.horizontal, horizontalPadding)
.padding(.bottom, OnboardingMetrics.actionButtonBottomPadding)
.padding(.bottom, geometry.safeAreaInsets.bottom > 0 ? 0 : 16)
Spacer()
@@ -54,7 +54,7 @@ struct OnboardingCelebrationScreen: View {
buttons
.frame(maxWidth: OnboardingMetrics.maxContentWidth)
.padding(.horizontal, horizontalPadding)
.padding(.bottom, 24)
.padding(.bottom, OnboardingMetrics.actionButtonBottomPadding)
.padding(.bottom, geometry.safeAreaInsets.bottom > 0 ? 0 : 16)
Spacer()
@@ -26,6 +26,8 @@ struct OnboardingMetrics {
static let breakerScreenTopPadding: CGFloat = 80
/// The padding used between the top of the main content and the navigation bar.
static let topPaddingToNavigationBar: CGFloat = 16
/// The padding used between the footer and the bottom of the view.
static let actionButtonBottomPadding: CGFloat = 24
/// The width/height used for the main icon shown in most of the screens.
static let iconSize: CGFloat = 90
@@ -53,7 +53,7 @@ struct OnboardingCongratulationsScreen: View {
footer
.frame(maxWidth: OnboardingMetrics.maxContentWidth)
.padding(.horizontal, horizontalPadding)
.padding(.bottom, 24)
.padding(.bottom, OnboardingMetrics.actionButtonBottomPadding)
.padding(.bottom, geometry.safeAreaInsets.bottom > 0 ? 0 : 16)
Spacer()