mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-04-24 18:42:47 +02:00
Use consistent padding on action buttons.
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
+1
-1
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user