Proyectos de Subversion Iphone Microlearning - Nuevo Interface

Rev

Rev 49 | Rev 51 | Ir a la última revisión | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 49 Rev 50
Línea 119... Línea 119...
119
 
119
 
Línea 120... Línea 120...
120
     
120
     
121
                }.background(Color("color_card_view_background"))
121
                }.background(Color("color_card_view_background"))
-
 
122
                
-
 
123
                Text(Config.LANG_DELETE_ACCOUNT_MESSAGE)
-
 
124
                    .font(Font.custom(Config.FONT_NAME_REGULAR, size: 16))
Línea 122... Línea 125...
122
                
125
                    .foregroundColor(Color("color_textview_foreground"))
123
                Text(Config.LANG_DELETE_ACCOUNT_MESSAGE)
126
                    .padding(.horizontal, 16)
124
                    .font(Font.custom(Config.FONT_NAME_REGULAR, size: Config.FONT_SIZE_DELETE_ACCOUNT_TEXT))
127
                    .padding(.top, 20)
125
                
128
                
126
                HStack {
129
                HStack {
127
                    Text(Config.LANG_DELETE_ACCOUNT_FIELD_CODE_LABEL)
130
                    Text(Config.LANG_DELETE_ACCOUNT_FIELD_CODE_LABEL)
128
                    .font(Font.custom(Config  .FONT_NAME_REGULAR, size: 11))
131
                    .font(Font.custom(Config  .FONT_NAME_REGULAR, size: 11))
129
                    .foregroundColor(Color("color_textview_foreground"))
132
                    .foregroundColor(Color("color_textview_foreground"))
Línea -... Línea 133...
-
 
133
                    Spacer()
130
                    Spacer()
134
                }
131
                }
135
                .padding(.leading, 16)
132
                .padding(.leading, 16)
136
                .padding(.top, 10)
133
                .padding(.top, 10)
-
 
-
 
137
                
-
 
138
                
134
                
139
                Group {
135
                TextField("",
140
                    HStack {
136
                    text: self.$code)
141
                        
137
            
142
                        
-
 
143
          
-
 
144
                        TextField("",
-
 
145
                           text: self.$code
-
 
146
                        ).keyboardType(.default)
-
 
147
                        .autocapitalization(.none)
-
 
148
                        //.foregroundColor(Color("color_textfield_foreground"))
-
 
149
                        //.background(Color("color_textfield_background"))
-
 
150
                        .padding(.leading, 4)
138
                .font(Font.custom(Config.FONT_NAME_REGULAR, size: 12))
151
                        Spacer()
139
                .textFieldStyle(PlainTextFieldStyle())
152
                   
-
 
153
                    }
-
 
154
                }
-
 
155
 
140
                .frame(height: 32)
156
                .foregroundColor(Color("color_textfield_foreground"))
-
 
157
                .background(Color("color_textfield_background"))
141
                    .keyboardType(.default)
158
                .overlay(RoundedRectangle(cornerRadius: 5).stroke(
-
 
159
                    Color(self.code.count == 8 ? "color_textfield_border" : "color_textfield_border_error" )
-
 
160
                ))
-
 
161
                .padding(.leading, 16)
-
 
162
                .padding(.trailing, 16)
-
 
163
                .padding(.top, self.code.count == 8 ? 10 : 2)
-
 
164
 
-
 
165
 
-
 
166
                if self.code.count  != 8 {
-
 
167
                    HStack {
-
 
168
                        Spacer()
-
 
169
                     
-
 
170
                        Text(Config.LANG_SIGNIN_ERROR_EMAIL_FIELD)
-
 
171
                        .foregroundColor(.red)
-
 
172
                            .font(Font.custom(Config.FONT_NAME_REGULAR, size: 11))
-
 
173
                     
-
 
174
                    }
Línea 142... Línea 175...
142
                .autocapitalization(.none)
175
                    .padding(.top, 5)
143
                .foregroundColor(Color("color_textfield_foreground"))
176
                    .padding(.trailing, 16)
Línea 144... Línea 177...
144
                .background(Color("color_textfield_background"))
177
                }
145
                .padding(.leading, 4)
178
                
146
                .frame(width: UIScreen.main.bounds.width - 32, height: 35)
179
                
147
 
180
 
148
                Button(action: {
181
                Button(action: {
149
                    sendCode();
182
                    sendCode();
150
                 
183
                 
151
                }, label: {
184
                }, label: {
Línea 152... Línea 185...
152
                    Text(Config.LANG_DELETE_ACCOUNT_BUTTON_SEND)
185
                    Text(Config.LANG_DELETE_ACCOUNT_BUTTON_SEND)
153
                    .font(Font.custom(Config.FONT_NAME_REGULAR, size: 13))
186
                    .font(Font.custom(Config.FONT_NAME_REGULAR, size: 13))
154
                    .frame(width: UIScreen.main.bounds.width - 32, height: 35)
187
                    .frame(width: UIScreen.main.bounds.width - 32, height: 35)
Línea 178... Línea 211...
178
                .padding(.top, 16)
211
                .padding(.top, 16)
179
                .padding(.leading, 16)
212
                .padding(.leading, 16)
180
                .padding(.trailing, 16)
213
                .padding(.trailing, 16)
Línea 181... Línea 214...
181
                    
214
                    
182
                Spacer()
-
 
-
 
215
                Spacer()
183
                    
216
                    /*
Línea 184... Línea 217...
184
                Button(action: {
217
                Button(action: {
185
                        
218
                        
186
                    withAnimation {
219
                    withAnimation {
Línea 197... Línea 230...
197
                    .cornerRadius(Config.BUTTON_BORDER_RADIUS)
230
                    .cornerRadius(Config.BUTTON_BORDER_RADIUS)
198
                }) .padding(.top, 16)
231
                }) .padding(.top, 16)
199
                .padding(.leading, 16)
232
                .padding(.leading, 16)
200
                .padding(.trailing, 16)
233
                .padding(.trailing, 16)
Línea 201... Línea -...
201
        
-
 
-
 
234
        
202
                
235
                */
203
            } .alert(isPresented: $presentAlert) {
236
            } .alert(isPresented: $presentAlert) {
204
                Alert(
237
                Alert(
205
                    title: Text(self.titleAlert),
238
                    title: Text(self.titleAlert),
206
                    message: Text(self.messageAlert),
239
                    message: Text(self.messageAlert),