Proyectos de Subversion Iphone Microlearning - Inconcert

Rev

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

Rev 1 Rev 17
Línea 123... Línea 123...
123
                    }
123
                    }
Línea 124... Línea 124...
124
 
124
 
Línea 125... Línea 125...
125
            }
125
            }
-
 
126
            
-
 
127
            Spacer()
-
 
128
            
-
 
129
            Button(action: {
-
 
130
               
-
 
131
                DispatchQueue.main.asyncAfter(deadline: .now() + 0.1) {
-
 
132
                    appData.topicUuidActive = self.capsuleViewModel.capsule.topicUuid
-
 
133
                    appData.capsuleUuidActive = self.capsuleViewModel.capsule.uuid
-
 
134
                    appData.slideUuidActive = ""
-
 
135
                    appData.save()
-
 
136
                    
-
 
137
                    appNavigation.subPageSource = .mycapsules
-
 
138
                    
-
 
139
                    withAnimation {
-
 
140
                        appNavigation.subpageActive = .slides
-
 
141
                    }
-
 
142
                    
-
 
143
                    }
-
 
144
                
-
 
145
            }, label: {
-
 
146
                Text(Config.LANG_COMMON_NEXT)
-
 
147
                 .font(Font.custom(Config.FONT_NAME_REGULAR, size: 16))
-
 
148
                 .frame(width: UIScreen.main.bounds.width - 32, height: 35)
-
 
149
                    
-
 
150
                    .foregroundColor(Color("color_button_dark_foreground"))
-
 
151
                    .background(Color("color_button_dark_background"))
-
 
152
                    .border(Color( "color_button_dark_border"), width: Config.BUTTON_BORDER_SIZE)
-
 
153
                    .cornerRadius(Config.BUTTON_BORDER_RADIUS)
-
 
154
                
-
 
155
            })
-
 
156
            .padding(.top, 16)
126
            
157
            .padding(.leading, 16)
127
            Spacer()
158
            .padding(.trailing, 16)
128
        }
159
        }
Línea 129... Línea 160...
129
        .background(Color("color_picker_background"))
160
        .background(Color("color_picker_background"))
Línea 185... Línea 216...
185
                                    let sTotalRating = json?["data"]["capsule"]["total_rating"].string ?? ""
216
                                    let sTotalRating = json?["data"]["capsule"]["total_rating"].string ?? ""
Línea 186... Línea 217...
186
                                  
217
                                  
187
                                    capsuleViewModel.capsule.totalComments = Int(sTotalComments) ?? 0
218
                                    capsuleViewModel.capsule.totalComments = Int(sTotalComments) ?? 0
Línea 188... Línea 219...
188
                                    capsuleViewModel.capsule.totalRating = Decimal(Double(sTotalRating) ?? 0)
219
                                    capsuleViewModel.capsule.totalRating = Decimal(Double(sTotalRating) ?? 0)
189
                                    
220
                                    
190
                                    let capsuleDao = CapsuleDao.sharedInstance
221
                                    let capsuleDao = CapsuleDao()
Línea 191... Línea 222...
191
                                    capsuleDao.update(capsule: capsuleViewModel.capsule)
222
                                    capsuleDao.update(capsule: capsuleViewModel.capsule)
192
                                }
223
                                }
Línea 321... Línea 352...
321
                            let sTotalRating = json?["data"]["capsule"]["total_rating"].string ?? ""
352
                            let sTotalRating = json?["data"]["capsule"]["total_rating"].string ?? ""
Línea 322... Línea 353...
322
                          
353
                          
323
                            capsuleViewModel.capsule.totalComments = Int(sTotalComments) ?? 0
354
                            capsuleViewModel.capsule.totalComments = Int(sTotalComments) ?? 0
Línea 324... Línea 355...
324
                            capsuleViewModel.capsule.totalRating = Decimal(Double(sTotalRating) ?? 0)
355
                            capsuleViewModel.capsule.totalRating = Decimal(Double(sTotalRating) ?? 0)
325
                            
356
                            
326
                            let capsuleDao = CapsuleDao.sharedInstance
357
                            let capsuleDao = CapsuleDao()
Línea 397... Línea 428...
397
                            let sTotalRating = json?["data"]["capsule"]["total_rating"].string ?? ""
428
                            let sTotalRating = json?["data"]["capsule"]["total_rating"].string ?? ""
Línea 398... Línea 429...
398
                          
429
                          
399
                            capsuleViewModel.capsule.totalComments = Int(sTotalComments) ?? 0
430
                            capsuleViewModel.capsule.totalComments = Int(sTotalComments) ?? 0
Línea 400... Línea 431...
400
                            capsuleViewModel.capsule.totalRating = Decimal(Double(sTotalRating) ?? 0)
431
                            capsuleViewModel.capsule.totalRating = Decimal(Double(sTotalRating) ?? 0)
401
                            
432
                            
402
                            let capsuleDao = CapsuleDao.sharedInstance
433
                            let capsuleDao = CapsuleDao()