Proyectos de Subversion Iphone Microlearning - Nuevo Interface

Rev

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

Rev 44 Rev 55
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 sheetURL: String = ""
Línea 61... Línea 66...
61
    @State private var messageAlert : String = ""
66
    @State private var sheetShow = 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(sheetURL: self.$sheetURL, sheetShow: self.$sheetShow)
Línea 131... Línea 136...
131
                                   
136
                                   
Línea 158... Línea 163...
158
            
163
            
Línea 159... Línea 164...
159
          
164
          
-
 
165
               // print("keyboardHeightHide ")
-
 
166
                
-
 
167
            }
-
 
168
        }.sheet(item: $sheetShow, content: {
160
               // print("keyboardHeightHide ")
169
            
161
                
170
            let url = URL(string: sheetURL);
162
            }
171
            
163
        }
172
            SafariView(url: url)
164
        
173
            
165
         .alert(isPresented: $presentAlert) {
174
        }).alert(isPresented: $presentAlert) {
166
            Alert(
175
            Alert(
167
                title: Text(self.titleAlert),
176
                title: Text(self.titleAlert),
Línea 697... Línea 706...
697
    
706
    
Línea 698... Línea 707...
698
 
707
 
699
}
708
}
-
 
709
 
700
 
710
struct ButtonSignUpGroup : View {
-
 
711
    @Binding var sheetURL: String
Línea 701... Línea 712...
701
struct ButtonSignUpGroup : View {
712
    @Binding var sheetShow : Bool
702
    @Environment(\.openURL) var openURL
713
    
703
 
714
    
-
 
715
    
Línea 704... Línea 716...
704
    
716
    var body : some View {
705
    var body : some View {
717
        Button(action: {
706
        Button(action: {
718
            sheetURL = Config.URL_SIGNUP_ENDPOINT
707
            openURL(URL(string: Config.URL_SIGNUP_ENDPOINT)!)
719
            sheetShow = 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
-
 
-
 
738
    @Binding var sheetURL: String
Línea 727... Línea 739...
727
    
739
    @Binding var sheetShow : Bool
728
    
740
    
729
    var body : some View {
741
    var body : some View {
-
 
742
        Button(action: {
Línea 730... Línea 743...
730
        Button(action: {
743
            sheetURL = Config.URL_FORGOT_PASSWORD_ENDPOINT
731
            openURL(URL(string: Config.URL_FORGOT_PASSWORD_ENDPOINT)!)
744
            sheetShow = true
732
            
745