Proyectos de Subversion Iphone Microlearning - Inconcert

Rev

Ir a la última revisión | | 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))
26
 
27
                    Spacer()
28
                }
29
            }
30
            .padding(.leading, 16)
31
            .padding(.top, 66)
32
 
33
            Spacer()
34
 
35
 
36
            LottieView(name: "good-bye-delete-account")
37
 
38
                .frame(width: UIScreen.main.bounds.width / 1.5,
39
                       height: UIScreen.main.bounds.height / 3.2)
40
 
41
 
42
 
43
            Group {
44
 
45
                VStack(spacing: 0)
46
                {
47
 
48
                    Text(Config.LANG_GOODBYE_DELETE_ACCOUNT_TITLE)
49
                        .font(Font.custom(Config.FONT_NAME_BOLD, size: 18))
50
                        .foregroundColor(Color("color_textview_foreground"))
51
 
52
 
53
                    Text(Config.LANG_GOODBYE_DELETE_ACCOUNT_LABEL)
54
                        .font(Font.custom(Config.FONT_NAME_REGULAR, size: 16))
55
                        .foregroundColor(Color("color_textview_foreground"))
56
                        .padding(.horizontal, 16)
57
                        .padding(.top, 20)
58
                }
59
 
60
            }.padding(.top, 30)
61
 
62
            Spacer()
63
 
64
 
65
 
66
            Button(action: {
67
 
68
                DispatchQueue.main.asyncAfter(deadline: .now() + 0.1) {
69
                        withAnimation {
70
                            appNavigation.pageActive = AppMainPage.intro1
71
                        }
72
                    }
73
 
74
            }, label: {
75
                Text(Config.LANG_COMMON_NEXT)
76
                 .font(Font.custom(Config.FONT_NAME_REGULAR, size: 16))
77
                 .frame(width: UIScreen.main.bounds.width - 32, height: 35)
78
 
79
                    .foregroundColor(Color("color_button_dark_foreground"))
80
                    .background(Color("color_button_dark_background"))
81
                    .border(Color( "color_button_dark_border"), width: Config.BUTTON_BORDER_SIZE)
82
                    .cornerRadius(Config.BUTTON_BORDER_RADIUS)
83
 
84
            })
85
            .padding(.top, 16)
86
            .padding(.leading, 16)
87
            .padding(.trailing, 16)
88
 
89
 
90
            Spacer()
91
        }
92
    }
93
}
94
 
95
struct GoodByeDeleteAccountView_Previews: PreviewProvider {
96
    static var previews: some View {
97
        GoodByeDeleteAccountView()
98
    }
99
}