Proyectos de Subversion Iphone Microlearning - Inconcert

Rev

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

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