Proyectos de Subversion Iphone Microlearning - Inconcert

Rev

Rev 5 | | Comparar con el anterior | Ultima modificación | Ver Log |

Rev Autor Línea Nro. Línea
1 efrain 1
//
2
//  IntroStep1View.swift
3
//  twogetskills
4
//
5
//  Created by Efrain Yanez Recanatini on 7/21/22.
6
//
7
 
8
import SwiftUI
9
 
10
struct IntroStep2View: View {
11
 
12
    @EnvironmentObject var appNavigation : AppNavigation
13
 
14
 
15
    var body: some View {
16
 
17
            VStack(spacing: 0)
18
            {
19
 
20
                Group {
21
                    HStack {
22
                        Image("logo")
23
                            .resizable()
24
                            .aspectRatio(contentMode: .fit)
25
                            .frame(width: 42, height: 42, alignment: /*@START_MENU_TOKEN@*/.center/*@END_MENU_TOKEN@*/)
26
 
27
                        Text(Config.LANG_SIGNIN_APP_NAME)
28
                            .font(Font.custom(Config.FONT_NAME_BOLD, size: 24))
19 efrain 29
                            .foregroundColor(Color("color_textview_foreground"))
1 efrain 30
 
31
                        Spacer()
32
                    }
33
                }
34
                .padding(.leading, 16)
35
                .padding(.top, 66)
36
 
37
                Spacer()
38
 
39
 
40
 
41
                Group()
42
                {
5 efrain 43
                    Image(uiImage: UIImage(named: "ui_intro_aprende_sin_limite_de_tiempo") ?? UIImage())
1 efrain 44
 
45
                }
46
                .background(
47
                    Image(uiImage: UIImage(named: "ui_cuadrado_inclinado") ?? UIImage())
48
                )
49
 
50
 
51
                Group {
52
 
53
                    VStack(spacing: 0)
54
                    {
55
 
56
                        Text(Config.LANG_INTRO2_TITLE)
57
                            .font(Font.custom(Config.FONT_NAME_BOLD, size: 18))
58
                            .foregroundColor(Color("color_textview_foreground"))
59
 
60
 
61
                        Text(Config.LANG_INTRO2_MESSAGE)
62
                            .font(Font.custom(Config.FONT_NAME_REGULAR, size: 16))
63
                            .foregroundColor(Color("color_textview_foreground"))
64
                            .padding(.horizontal, 16)
65
                            .padding(.top, 20)
66
                    }
67
 
68
                }.padding(.top, 30)
69
 
70
                Spacer()
71
 
72
 
73
 
74
                Button(action: {
75
 
76
                    DispatchQueue.main.asyncAfter(deadline: .now() + 0.1) {
77
                            withAnimation {
78
                                appNavigation.pageActive = AppMainPage.intro3
79
                            }
80
                        }
81
 
82
                }, label: {
83
                    Text(Config.LANG_COMMON_NEXT)
84
                     .font(Font.custom(Config.FONT_NAME_REGULAR, size: 16))
85
                     .frame(width: UIScreen.main.bounds.width - 32, height: 35)
86
 
87
 
88
                        .foregroundColor(Color("color_button_dark_foreground"))
89
                        .background(Color("color_button_dark_background"))
90
                        .border(Color( "color_button_dark_border"), width: Config.BUTTON_BORDER_SIZE)
91
                        .cornerRadius(Config.BUTTON_BORDER_RADIUS)
92
 
93
                })
94
                .padding(.top, 16)
95
                .padding(.leading, 16)
96
                .padding(.trailing, 16)
97
 
98
 
99
                Spacer()
100
 
101
        }
102
    }
103
}
104
 
105
struct IntroStep2View_Previews: PreviewProvider {
106
    static var previews: some View {
107
        IntroStep2View()
108
    }
109
}
110