File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -285,6 +285,10 @@ enum Strings {
285285 static let email = " Email "
286286 static let password = " Password "
287287
288+ static var welcomeToApp : String {
289+ " Welcome to \( Bundle . main. displayName) "
290+ }
291+
288292 static let onboardingDescription1 = " Onboarding description 1. "
289293 static let onboardingDescription2 = " Onboarding description 2. "
290294 static let onboardingDescription3 = " Onboarding description 3. "
Original file line number Diff line number Diff line change @@ -26,6 +26,7 @@ private extension OnboardingView {
2626 @ViewBuilder var contentView : some View {
2727 VStack {
2828 SwiftUI . TabView {
29+ welcomePage
2930 ForEach ( viewModel. onboardings) { onboarding in
3031 let id = onboarding. id
3132 page (
@@ -60,6 +61,31 @@ private extension OnboardingView {
6061 . frame ( width: 256 , height: 24 )
6162 }
6263
64+ private var welcomePage : some View {
65+ ZStack ( alignment: . bottom) {
66+ Image ( " hero " )
67+ . resizable ( )
68+ . aspectRatio ( contentMode: . fit)
69+ . padding ( . top, NativeAppTemplateConstants . Spacing. md)
70+ . padding ( . bottom, 192 )
71+
72+ ZStack ( alignment: . top) {
73+ VStack {
74+ Text ( Strings . welcomeToApp)
75+ . font ( . largeTitle)
76+ . fontWeight ( . bold)
77+ . multilineTextAlignment ( . center)
78+ . dynamicTypeSize ( DynamicTypeSize . accessibility1)
79+ . padding ( [ . top, . horizontal] )
80+ . accessibilityIdentifier ( " OnboardingView_welcome_staticText " )
81+ }
82+ . background ( Color . backgroundColor)
83+ . frame ( maxWidth: . infinity, maxHeight: 192 , alignment: . top)
84+ }
85+ . background ( Color . backgroundColor)
86+ }
87+ }
88+
6389 private func page( image: String , text: String , imageOrientation: ImageOrientation ) -> some View {
6490 ZStack ( alignment: . bottom) {
6591 Image ( image)
You can’t perform that action at this time.
0 commit comments