AutorÃa | Ultima modificación | Ver Log |
//// PlusMenuView.swift// twogetskills//// Created by Efrain Yanez Recanatini on 7/24/22.//import SwiftUIstruct PlusMenuView: View {@Binding var showPopUp : Bool@EnvironmentObject var appNavigation : AppNavigationlet widthAndHeight: CGFloatvar body: some View {HStack(spacing: 50) {Button(action:{withAnimation {self.showPopUp = falseappNavigation.subpageActive = .profile}}, label: {ZStack {Circle().foregroundColor(Color("color_tab_bar_button_plus_background")).frame(width: widthAndHeight, height: widthAndHeight)Image(systemName: "person").resizable().aspectRatio(contentMode: .fit).padding(15).frame(width: widthAndHeight, height: widthAndHeight).foregroundColor(Color("color_tab_bar_button_plus_foreground"))}})Button(action:{withAnimation {self.showPopUp = falseappNavigation.subpageActive = .notification}}, label: {ZStack {Circle().foregroundColor(Color("color_tab_bar_button_plus_background")).frame(width: widthAndHeight, height: widthAndHeight)Image(systemName: "bell").resizable().aspectRatio(contentMode: .fit).padding(15).frame(width: widthAndHeight, height: widthAndHeight).foregroundColor(Color("color_tab_bar_button_plus_foreground"))}})}.transition(.scale)}}