Proyectos de Subversion Iphone Microlearning - Nuevo Interface

Rev

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

Rev 9 Rev 11
Línea 113... Línea 113...
113
                    }
113
                    }
114
                }
114
                }
115
                .padding(.top, 5)
115
                .padding(.top, 5)
116
            }
116
            }
117
            .onAppear {
117
            .onAppear {
-
 
118
                let appData = appDao.selectOne()
118
                var i : Int = 0
119
                var i : Int = 0
119
                while i < self.viewModel.topics.count {
120
                while i < self.viewModel.topics.count {
120
                    if appData.topicUuidActive == self.viewModel.topics[i].uuid {
121
                    if appData.topicUuidActive == self.viewModel.topics[i].uuid {
121
                        self.scrollToIndex = i
122
                        self.scrollToIndex = i
122
                    }
123
                    }
Línea 133... Línea 134...
133
        }
134
        }
134
    }
135
    }
Línea 135... Línea 136...
135
    
136
    
136
    private func refresh() {
137
    private func refresh() {
-
 
138
        self.showProgressView = true
Línea 137... Línea 139...
137
        self.showProgressView = true
139
        let appData = appDao.selectOne()
Línea 138... Línea 140...
138
        
140
        
139
        let headerSecurity : HeaderSecurity = HeaderSecurity()
141
        let headerSecurity : HeaderSecurity = HeaderSecurity()
Línea 151... Línea 153...
151
        AF.request(Config.URL_REFRESH, method: .get, headers: headers).responseJSON{(response) in
153
        AF.request(Config.URL_REFRESH, method: .get, headers: headers).responseJSON{(response) in
152
                self.showProgressView = false
154
                self.showProgressView = false
153
                switch response.result {
155
                switch response.result {
154
                    case .success:
156
                    case .success:
Línea 155... Línea -...
155
                        
-
 
-
 
157
                        
156
                        
158
                        let appData = appDao.selectOne()
Línea 157... Línea 159...
157
                        let json = try? JSON(data: response.data!)
159
                        let json = try? JSON(data: response.data!)
Línea 158... Línea 160...
158
                        
160
                        
159
                        print("json : \(json)")
161
                        //print("json : \(json)")