Use readableFrame and OnboardingIconImage everywhere.

Fix order of accentColor modifier.
This commit is contained in:
Doug
2022-05-10 15:30:03 +01:00
committed by Doug
parent dcc6e0d3df
commit 870fc616c5
8 changed files with 24 additions and 38 deletions

View File

@@ -48,14 +48,14 @@ struct OnboardingDisplayNameScreen: View {
buttons
}
.frame(maxWidth: OnboardingMetrics.maxContentWidth)
.readableFrame()
.padding(.horizontal)
.padding(.top, OnboardingMetrics.topPaddingToNavigationBar)
}
.frame(maxWidth: .infinity, maxHeight: .infinity)
.accentColor(theme.colors.accent)
.frame(maxHeight: .infinity)
.background(theme.colors.background.ignoresSafeArea())
.alert(item: $viewModel.alertInfo) { $0.alert }
.accentColor(theme.colors.accent)
.onChange(of: viewModel.displayName) { _ in
viewModel.send(viewAction: .validateDisplayName)
}