Proyectos de Subversion Iphone Microlearning - Nuevo Interface

Rev

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

Rev 57 Rev 58
Línea 60... Línea 60...
60
    @State private var titleAlert : String = ""
60
    @State private var titleAlert : String = ""
61
    @State private var messageAlert : String = ""
61
    @State private var messageAlert : String = ""
Línea 62... Línea 62...
62
    
62
    
63
 
63
 
Línea 64... Línea 64...
64
    
64
    
65
    @State private var sheetURL: String = ""
65
    @State private var openForgotPassword : Bool = false
Línea 66... Línea 66...
66
    @State private var sheetShow = false
66
    @State private var openSignup : Bool = false
Línea 130... Línea 130...
130
                                   .padding(.top, 16)
130
                                   .padding(.top, 16)
131
                                   .padding(.leading, 16)
131
                                   .padding(.leading, 16)
132
                                   .padding(.trailing, 16)
132
                                   .padding(.trailing, 16)
Línea 133... Línea 133...
133
                                   
133
                                   
Línea 134... Línea 134...
134
                         
134
                         
Línea 135... Línea 135...
135
                ButtonSignUpGroup(sheetURL: self.$sheetURL, sheetShow: self.$sheetShow)
135
                ButtonSignUpGroup(openSignup: self.$openSignup)
136
                                   
136
                                   
Línea 137... Línea 137...
137
                                   
137
                                   
Línea 138... Línea 138...
138
                
138
                
Línea 163... Línea 163...
163
            
163
            
Línea 164... Línea 164...
164
          
164
          
165
               // print("keyboardHeightHide ")
165
               // print("keyboardHeightHide ")
166
                
166
                
167
            }
167
            }
Línea -... Línea 168...
-
 
168
        }.popover(isPresented: self.$openSignup, content: {
Línea 168... Línea 169...
168
        }.popover(isPresented: self.$sheetShow, content: {
169
 
169
            
170
            SafariView(sURL: Config.URL_SIGNUP_ENDPOINT)
170
            let url = URL(string: sheetURL)
171
  
171
  
172
        }).popover(isPresented: self.$openForgotPassword, content: {
172
            
173
            
173
            SafariView(url: url!)
174
            SafariView(sURL: Config.URL_FORGOT_PASSWORD_ENDPOINT)
174
            
175
   
Línea 707... Línea 708...
707
    
708
    
Línea 708... Línea 709...
708
 
709
 
709
}
-
 
710
 
710
}
Línea 711... Línea 711...
711
struct ButtonSignUpGroup : View {
711
 
712
    @Binding var sheetURL: String
712
struct ButtonSignUpGroup : View {
713
    @Binding var sheetShow : Bool
-
 
714
    
713
    @Binding var openSignup : Bool
Línea 715... Línea 714...
715
    
714
    
716
    
715
    
717
    var body : some View {
716
    
718
        Button(action: {
717
    var body : some View {
Línea 734... Línea 733...
734
        .padding(.trailing, 16)
733
        .padding(.trailing, 16)
735
    }
734
    }
736
}
735
}
Línea 737... Línea 736...
737
 
736
 
738
struct ButtonForgotPasswordGroup : View {
-
 
739
    @Binding var sheetURL: String
737
struct ButtonForgotPasswordGroup : View {
740
    @Binding var sheetShow : Bool
738
    @Binding var openForgotPassword : Bool
741
    
739
 
742
    var body : some View {
740
    var body : some View {
743
        Button(action: {
-
 
744
            sheetURL = Config.URL_FORGOT_PASSWORD_ENDPOINT
741
        Button(action: {
Línea 745... Línea 742...
745
            sheetShow = true
742
            openForgotPassword = true
746
            
743
            
747
        }, label: {
744
        }, label: {
Línea 754... Línea 751...
754
            
751
            
755
        })
752
        })
756
        .padding(.vertical, 16)
753
        .padding(.vertical, 16)
757
    }
754
    }
-
 
755
}