You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Apple/Sources/allin/allin/Views/TopBarView.swift

40 lines
1.1 KiB

//
// TopBarView.swift
// AllIn
//
// Created by Emre KARTAL on 19/09/2023.
//
import SwiftUI
struct TopBarView: View {
@Binding var showMenu: Bool
var body: some View {
ZStack{
HStack{
Button(action: {withAnimation{ self.showMenu.toggle() }}) {
Image("menu")
.resizable()
.frame(width: 26,height: 15)
.padding(.leading, 20)
}
Spacer()
CoinCounterView()
}
.frame(alignment: .top)
Image("Icon")
.resizable()
.frame(width: 40, height: 40, alignment: .bottom)
}
.padding([.bottom], 20)
.padding([.top], 10)
.background(LinearGradient(gradient:
Gradient(colors:[AllinColor.TopBarColorPink,AllinColor.TopBarColorPurple,AllinColor.TopBarColorBlue]),
startPoint: .bottomLeading, endPoint: .topTrailing))
}
}