Proyectos de Subversion Iphone Microlearning - Inconcert

Rev

Rev 17 | Ir a la última revisión | | Ultima modificación | Ver Log |

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