Proyectos de Subversion Iphone Microlearning - Nuevo Interface

Rev

Rev 1 | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 1 Rev 8
Línea 7... Línea 7...
7
 
7
 
Línea 8... Línea 8...
8
import SwiftUI
8
import SwiftUI
9
 
-
 
10
 
9
 
-
 
10
 
-
 
11
struct CommentAndRatingCommentListView: View {
Línea -... Línea 12...
-
 
12
    
-
 
13
    var comments : [CommentAndRatingComment]
11
struct CommentAndRatingCommentListView: View {
14
    @Binding var showProgressView : Bool
-
 
15
 
12
   var comments : [CommentAndRatingComment]
16
    
-
 
17
    
-
 
18
    var body: some View {
-
 
19
        
-
 
20
        ZStack {
-
 
21
        
-
 
22
            if self.showProgressView {
-
 
23
                ProgressView()
-
 
24
                    .progressViewStyle(CircularProgressViewStyle(tint: Color("color_progress_view_foreground")))
-
 
25
                    .scaleEffect(3, anchor: .center).zIndex(100000)
13
 
26
            }
14
 
27
            
15
    var body: some View {
28
            if comments.count == 0 {
-
 
29
                CommentAndRatingCommentListEmptyView()
-
 
30
            } else {
-
 
31
            
-
 
32
                ScrollView {
16
        ScrollView {
33
                    LazyVStack  {
-
 
34
                        ForEach(0..<self.comments.count) { index in
-
 
35
                            CommentAndRatingCommentListItem(comment: self.comments[index])
17
            LazyVStack  {
36
                        }
18
                
37
                        
19
                Text("AQUI")
38
                    }
20
                
39
                }
Línea 21... Línea 40...
21
            }
40
            }
Línea 22... Línea 41...
22
        }
41
        }
Línea -... Línea 42...
-
 
42
    }
-
 
43
}
23
    }
44
 
24
}
45
struct CommentAndRatingCommentListView_Previews: PreviewProvider {
25
 
46
    
26
struct CommentAndRatingCommentListView_Previews: PreviewProvider {
47
    static var viewModelCommments : CommentAndRatingCommentsViewModel = CommentAndRatingCommentsViewModel()