Proyectos de Subversion Iphone Microlearning - Inconcert

Rev

| Ultima modificación | Ver Log |

Rev Autor Línea Nro. Línea
1 efrain 1
//
2
//  PlusMenuView.swift
3
//  twogetskills
4
//
5
//  Created by Efrain Yanez Recanatini on 7/24/22.
6
//
7
 
8
import SwiftUI
9
 
10
struct PlusMenuView: View {
11
 
12
 
13
    @Binding var showPopUp : Bool
14
    @EnvironmentObject var appNavigation : AppNavigation
15
    let widthAndHeight: CGFloat
16
 
17
    var body: some View {
18
 
19
 
20
        HStack(spacing: 50) {
21
            Button(action:{
22
                withAnimation {
23
                    self.showPopUp = false
24
                    appNavigation.subpageActive = .profile
25
                }
26
 
27
            }, label: {
28
 
29
                ZStack {
30
                    Circle()
31
                        .foregroundColor(Color("color_tab_bar_button_plus_background"))
32
                        .frame(width: widthAndHeight, height: widthAndHeight)
33
                    Image(systemName: "person")
34
                        .resizable()
35
                        .aspectRatio(contentMode: .fit)
36
                        .padding(15)
37
                        .frame(width: widthAndHeight, height: widthAndHeight)
38
                        .foregroundColor(Color("color_tab_bar_button_plus_foreground"))
39
                }
40
            })
41
            Button(action:{
42
                withAnimation {
43
                    self.showPopUp = false
44
                    appNavigation.subpageActive = .notification
45
                }
46
 
47
            }, label: {
48
                ZStack {
49
                    Circle()
50
                        .foregroundColor(Color("color_tab_bar_button_plus_background"))
51
                        .frame(width: widthAndHeight, height: widthAndHeight)
52
                    Image(systemName: "bell")
53
                        .resizable()
54
                        .aspectRatio(contentMode: .fit)
55
                        .padding(15)
56
                        .frame(width: widthAndHeight, height: widthAndHeight)
57
                        .foregroundColor(Color("color_tab_bar_button_plus_foreground"))
58
                }
59
            })
60
 
61
        }
62
            .transition(.scale)
63
    }
64
}