Proyectos de Subversion Iphone Microlearning - Inconcert

Rev

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

Rev 1 Rev 11
Línea 17... Línea 17...
17
 
17
 
Línea 18... Línea -...
18
 
-
 
19
 
18
 
20
struct SigninView: View {
19
 
-
 
20
struct SigninView: View {
21
 
21
 
Línea 22... Línea 22...
22
    @Environment(\.openURL) var openURL
22
    @EnvironmentObject var networkMonitor : NetworkMonitor
Línea 23... Línea 23...
23
    @EnvironmentObject var networkMonitor : NetworkMonitor
23
    @EnvironmentObject var appNavigation : AppNavigation
Línea 57... Línea 57...
57
    @State private var showProgressView : Bool = false
57
    @State private var showProgressView : Bool = false
Línea 58... Línea 58...
58
    
58
    
59
    @State private var presentAlert : Bool = false
59
    @State private var presentAlert : Bool = false
60
    @State private var titleAlert : String = ""
60
    @State private var titleAlert : String = ""
-
 
61
    @State private var messageAlert : String = ""
-
 
62
    
-
 
63
 
-
 
64
    
-
 
65
    @State private var openForgotPassword : Bool = false
Línea 61... Línea 66...
61
    @State private var messageAlert : String = ""
66
    @State private var openSignup : Bool = false
62
 
67
 
Línea 63... Línea 68...
63
    var body: some View {
68
    var body: some View {
Línea 125... Línea 130...
125
                                   .padding(.top, 16)
130
                                   .padding(.top, 16)
126
                                   .padding(.leading, 16)
131
                                   .padding(.leading, 16)
127
                                   .padding(.trailing, 16)
132
                                   .padding(.trailing, 16)
Línea 128... Línea 133...
128
                                   
133
                                   
Línea 129... Línea 134...
129
                         
134
                         
Línea 130... Línea 135...
130
                ButtonSignUpGroup()
135
                ButtonSignUpGroup(openSignup: self.$openSignup)
131
                                   
136
                                   
Línea 132... Línea 137...
132
                                   
137
                                   
Línea 133... Línea 138...
133
                
138
                
Línea 158... Línea 163...
158
            
163
            
Línea 159... Línea 164...
159
          
164
          
-
 
165
               // print("keyboardHeightHide ")
-
 
166
                
-
 
167
            }
160
               // print("keyboardHeightHide ")
168
        }.popover(isPresented: self.$openSignup, content: {
-
 
169
 
161
                
170
            SafariView(sURL: Config.URL_SIGNUP_ENDPOINT)
-
 
171
  
-
 
172
        }).popover(isPresented: self.$openForgotPassword, content: {
162
            }
173
            
163
        }
174
            SafariView(sURL: Config.URL_FORGOT_PASSWORD_ENDPOINT)
164
        
175
   
165
         .alert(isPresented: $presentAlert) {
176
        }).alert(isPresented: $presentAlert) {
166
            Alert(
177
            Alert(
167
                title: Text(self.titleAlert),
178
                title: Text(self.titleAlert),
Línea 697... Línea 708...
697
    
708
    
Línea 698... Línea 709...
698
 
709
 
699
}
710
}
-
 
711
 
700
 
712
struct ButtonSignUpGroup : View {
Línea 701... Línea 713...
701
struct ButtonSignUpGroup : View {
713
    @Binding var openSignup : Bool
702
    @Environment(\.openURL) var openURL
714
    
703
 
715
    
Línea 704... Línea 716...
704
    
716
    
705
    var body : some View {
717
    var body : some View {
706
        Button(action: {
718
        Button(action: {
707
            openURL(URL(string: Config.URL_SIGNUP_ENDPOINT)!)
719
            openSignup = true
Línea 721... Línea 733...
721
        .padding(.trailing, 16)
733
        .padding(.trailing, 16)
722
    }
734
    }
723
}
735
}
Línea 724... Línea 736...
724
 
736
 
725
struct ButtonForgotPasswordGroup : View {
737
struct ButtonForgotPasswordGroup : View {
726
    @Environment(\.openURL) var openURL
-
 
727
    
738
    @Binding var openForgotPassword : Bool
728
    
739
 
729
    var body : some View {
740
    var body : some View {
730
        Button(action: {
741
        Button(action: {
Línea 731... Línea 742...
731
            openURL(URL(string: Config.URL_FORGOT_PASSWORD_ENDPOINT)!)
742
            openForgotPassword = true
732
            
743
            
733
        }, label: {
744
        }, label: {
Línea 740... Línea 751...
740
            
751
            
741
        })
752
        })
742
        .padding(.vertical, 16)
753
        .padding(.vertical, 16)
743
    }
754
    }
-
 
755
}