Add email verification screen (#6125)

Make a reusable onboarding icon view.
Use a native TextField for better dynamic type support.
Rename completion to callback.
Add readableFrame modifier.
This commit is contained in:
Doug
2022-05-10 14:09:43 +01:00
committed by GitHub
parent fb47bed8d8
commit aac2511ddc
28 changed files with 912 additions and 40 deletions
@@ -33,14 +33,8 @@ struct OnboardingUseCaseSelectionScreen: View {
/// The screen's title and instructions.
var titleContent: some View {
VStack(spacing: 8) {
Image(Asset.Images.onboardingUseCaseIcon.name)
.resizable()
.renderingMode(.template)
.foregroundColor(theme.colors.accent)
.frame(width: OnboardingMetrics.iconSize, height: OnboardingMetrics.iconSize)
.background(Circle().foregroundColor(.white).padding(2))
OnboardingIconImage(image: Asset.Images.onboardingUseCaseIcon)
.padding(.bottom, 8)
.accessibilityHidden(true)
Text(VectorL10n.onboardingUseCaseTitle)
.font(theme.fonts.title2B)