AutorÃa | Ultima modificación | Ver Log |
//
// PlusMenuView.swift
// twogetskills
//
// Created by Efrain Yanez Recanatini on 7/24/22.
//
import SwiftUI
struct PlusMenuView: View {
@Binding var showPopUp : Bool
@EnvironmentObject var appNavigation : AppNavigation
let widthAndHeight: CGFloat
var body: some View {
HStack(spacing: 50) {
Button(action:{
withAnimation {
self.showPopUp = false
appNavigation.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 = false
appNavigation.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)
}
}