add icon on center of the topper and all coin counter

Menu
lucas delanier 2 years ago
parent ece9804034
commit 5f5ed3e41a

Binary file not shown.

@ -433,6 +433,7 @@
CODE_SIGN_STYLE = Automatic; CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = 1; CURRENT_PROJECT_VERSION = 1;
DEVELOPMENT_ASSET_PATHS = "\"AllIn/Preview Content\""; DEVELOPMENT_ASSET_PATHS = "\"AllIn/Preview Content\"";
DEVELOPMENT_TEAM = 35KQ5BDC64;
ENABLE_PREVIEWS = YES; ENABLE_PREVIEWS = YES;
GENERATE_INFOPLIST_FILE = YES; GENERATE_INFOPLIST_FILE = YES;
INFOPLIST_KEY_UIApplicationSceneManifest_Generation = YES; INFOPLIST_KEY_UIApplicationSceneManifest_Generation = YES;
@ -461,6 +462,7 @@
CODE_SIGN_STYLE = Automatic; CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = 1; CURRENT_PROJECT_VERSION = 1;
DEVELOPMENT_ASSET_PATHS = "\"AllIn/Preview Content\""; DEVELOPMENT_ASSET_PATHS = "\"AllIn/Preview Content\"";
DEVELOPMENT_TEAM = 35KQ5BDC64;
ENABLE_PREVIEWS = YES; ENABLE_PREVIEWS = YES;
GENERATE_INFOPLIST_FILE = YES; GENERATE_INFOPLIST_FILE = YES;
INFOPLIST_KEY_UIApplicationSceneManifest_Generation = YES; INFOPLIST_KEY_UIApplicationSceneManifest_Generation = YES;

@ -9,15 +9,18 @@ import SwiftUI
struct CoinCounterView: View { struct CoinCounterView: View {
var body: some View { var body: some View {
HStack() { HStack(alignment: .center) {
Image("AllCoinsIcon") Image("AllCoinsIcon")
.resizable() .resizable()
.frame(width: 25, height: 25, alignment: .leading) .frame(width: 25, height: 25, alignment: .leading)
Text("541") Text("541") .fontWeight(.black)
} }
.frame(width: 50, height: 120) .padding(.all)
.background(Color.white) .background(Color.white)
.cornerRadius(9999)
} }
} }

@ -13,12 +13,20 @@ struct TopBarView: View {
let TopBarColorBlue = Color(red: 25/255, green: 159/255, blue: 238/255) let TopBarColorBlue = Color(red: 25/255, green: 159/255, blue: 238/255)
let TopBarColorPurple = Color(red: 170/255, green: 126/255, blue: 243/255) let TopBarColorPurple = Color(red: 170/255, green: 126/255, blue: 243/255)
GeometryReader { geometry in GeometryReader { geometry in
HStack() { ZStack() {
HStack(){
CoinCounterView()
}
.frame(width: geometry.size.width,alignment: .trailing)
Image("Icon") Image("Icon")
.resizable() .resizable()
.frame(width: 45, height: 45, alignment: .bottom) .frame(width: 45, height: 45, alignment: .bottom)
.padding(.all, 22)
} }
.frame(width: geometry.size.width, height: 120) .frame(width: geometry.size.width, height: 120, alignment: .bottom)
.background(LinearGradient(gradient: .background(LinearGradient(gradient:
Gradient(colors:[TopBarColorPink,TopBarColorPurple,TopBarColorBlue]), Gradient(colors:[TopBarColorPink,TopBarColorPurple,TopBarColorBlue]),
startPoint: .bottomLeading, endPoint: .topTrailing)) startPoint: .bottomLeading, endPoint: .topTrailing))

Loading…
Cancel
Save