Proyectos de Subversion Iphone Microlearning - Nuevo Interface

Rev

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

Rev 17 Rev 25
Línea 114... Línea 114...
114
                }
114
                }
115
                .padding(.top, 5)
115
                .padding(.top, 5)
116
            }
116
            }
117
            .onAppear {
117
            .onAppear {
Línea -... Línea 118...
-
 
118
                
-
 
119
                
-
 
120
                
-
 
121
                if appData.refreshContentActionRequired {
-
 
122
                    appData.refreshContentActionRequired = false
-
 
123
                    appData.save()
-
 
124
                    
-
 
125
                    refresh()
-
 
126
                    
118
                
127
                } else {
119
                var i : Int = 0
128
                    var i : Int = 0
120
                while i < self.viewModel.topics.count {
129
                    while i < self.viewModel.topics.count {
121
                    if appData.topicUuidActive == self.viewModel.topics[i].uuid {
130
                        if appData.topicUuidActive == self.viewModel.topics[i].uuid {
-
 
131
                            self.scrollToIndex = i
-
 
132
                        }
-
 
133
                        i += 1
122
                        self.scrollToIndex = i
134
                            
123
                    }
-
 
124
                    i += 1
-
 
125
                        
135
                    }
-
 
136
                }
-
 
137
                
126
                }
138
                
127
            } .alert(isPresented: $presentAlert) {
139
            } .alert(isPresented: $presentAlert) {
128
                Alert(
140
                Alert(
129
                    title: Text(self.titleAlert),
141
                    title: Text(self.titleAlert),
130
                    message: Text(self.messageAlert),
142
                    message: Text(self.messageAlert),