Proyectos de Subversion Iphone Microlearning - Nuevo Interface

Rev

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

Rev 8 Rev 22
Línea 4... Línea 4...
4
//
4
//
5
//  Created by Efrain Yanez Recanatini on 6/17/22.
5
//  Created by Efrain Yanez Recanatini on 6/17/22.
6
//
6
//
Línea 7... Línea 7...
7
 
7
 
8
import SwiftUI
-
 
Línea 9... Línea 8...
9
import NavigationStack
8
import SwiftUI
Línea 19... Línea 18...
19
   
18
   
Línea 20... Línea 19...
20
    @State var showPopUp = false
19
    @State var showPopUp = false
Línea 21... Línea -...
21
 
-
 
Línea 22... Línea 20...
22
    var body: some View {
20
 
23
 
21
    var body: some View {
Línea 46... Línea 44...
46
                    TabBarIconView(appNavigation: appNavigation, assignedPage: .mycapsules, width: geometry.size.width/5, height: geometry.size.height/28, systemIconName: "house", tabName: Config.LANG_TAB_BAR_BUTTON_MY_CAPSULES )
44
                    TabBarIconView(appNavigation: appNavigation, assignedPage: .mycapsules, width: geometry.size.width/5, height: geometry.size.height/28, systemIconName: "house", tabName: Config.LANG_TAB_BAR_BUTTON_MY_CAPSULES )
Línea 47... Línea 45...
47
                    
45
                    
Línea -... Línea 46...
-
 
46
                    TabBarIconView(appNavigation: appNavigation, assignedPage: .topics, width: geometry.size.width/5, height: geometry.size.height/28, systemIconName: "books.vertical", tabName: Config.LANG_TAB_BAR_BUTTON_TOPICS)
-
 
47
                    
-
 
48
              
-
 
49
//
-
 
50
                //ZStack {
-
 
51
                    Button(action: {
-
 
52
                        
-
 
53
                        withAnimation {
-
 
54
                            showPopUp.toggle()
48
                    TabBarIconView(appNavigation: appNavigation, assignedPage: .topics, width: geometry.size.width/5, height: geometry.size.height/28, systemIconName: "books.vertical", tabName: Config.LANG_TAB_BAR_BUTTON_TOPICS)
55
                        }
49
                    
56
                        
50
              
57
                    }, label: {
51
                    ZStack {
58
                        ZStack {
52
                        Circle()
59
                    Circle()
53
                            .foregroundColor(.white)
60
                            .foregroundColor(.white)
54
                            .frame(width: geometry.size.width/7, height: geometry.size.width/7)
61
                            .frame(width: geometry.size.width/9, height: geometry.size.width/9)
55
                            .shadow(radius: 4)
62
                            .shadow(radius: 4)
56
                        Image(systemName: showPopUp ? "minus.circle.fill"  : "plus.circle.fill")
63
                        Image(systemName: showPopUp ? "minus.circle.fill"  : "plus.circle.fill")
57
                            .resizable()
64
                            .resizable()
58
                            .aspectRatio(contentMode: .fit)
65
                            .aspectRatio(contentMode: .fit)
-
 
66
                            .frame(width: (geometry.size.width/9)-6 , height: (geometry.size.width/9)-6)
59
                            .frame(width: geometry.size.width/7-6 , height: geometry.size.width/7-6)
67
                            .foregroundColor(Color("color_tab_bar_button_plus_background" ))
-
 
68
                            .rotationEffect(Angle(degrees: showPopUp ? 0 : 90))
60
                            .foregroundColor(Color("color_tab_bar_button_plus_background" ))
69
                        }
61
                            .rotationEffect(Angle(degrees: showPopUp ? 0 : 90))
70
                    })
62
                    }
71
                   /* }
63
                        .offset(y: -geometry.size.height/8/2)
72
                        .offset(y: -geometry.size.height/8/2)
64
                        .onTapGesture {
73
                        .onTapGesture {
65
                            withAnimation {
74
                            withAnimation {
66
                                showPopUp.toggle()
75
                                showPopUp.toggle()
Línea 67... Línea 76...
67
                            }
76
                            }
68
                        }
77
                        }*/
69
                    TabBarIconView(appNavigation: appNavigation, assignedPage: .timeline, width: geometry.size.width/5, height: geometry.size.height/28, systemIconName: "clock.arrow.circlepath", tabName: Config.LANG_TAB_BAR_BUTTON_TIME_LINE)
78
                    TabBarIconView(appNavigation: appNavigation, assignedPage: .timeline, width: geometry.size.width/5, height: geometry.size.height/28, systemIconName: "clock.arrow.circlepath", tabName: Config.LANG_TAB_BAR_BUTTON_TIME_LINE)
Línea 76... Línea 85...
76
                
85
                
Línea 77... Línea 86...
77
            }
86
            }
78
          
87
          
79
         
-
 
80
        }
-
 
Línea 81... Línea 88...
81
            
88