Vasilis

wallet initial commit

...@@ -23,7 +23,7 @@ extension WalletView { ...@@ -23,7 +23,7 @@ extension WalletView {
23 .offset(y: self.uiscreen.height * 0.015) 23 .offset(y: self.uiscreen.height * 0.015)
24 } 24 }
25 } 25 }
26 - Text("Wallet") 26 + Text("My loyalty wallet")
27 .frame(width: self.uiscreen.width * 0.8, height: self.uiscreen.height * 0.025, alignment: .center) 27 .frame(width: self.uiscreen.width * 0.8, height: self.uiscreen.height * 0.025, alignment: .center)
28 .offset( y: self.uiscreen.height * 0.02) 28 .offset( y: self.uiscreen.height * 0.02)
29 .font(.system(size: 15)) 29 .font(.system(size: 15))
...@@ -40,15 +40,25 @@ struct WalletView: View { ...@@ -40,15 +40,25 @@ struct WalletView: View {
40 40
41 func goBack(){ 41 func goBack(){
42 for subview in parentView.subviews { 42 for subview in parentView.subviews {
43 - if(subview.tag == 1) { 43 + if(subview.tag == 3) {
44 subview.removeFromSuperview() 44 subview.removeFromSuperview()
45 } 45 }
46 } 46 }
47 } 47 }
48 48
49 var body: some View { 49 var body: some View {
50 + VStack {
50 headerView(goBack: goBack) 51 headerView(goBack: goBack)
51 - Text("Wallet View") 52 + ScrollView(showsIndicators: false) {
53 +
54 + }
55 + .frame(width:self.uiscreen.width, height:self.uiscreen.height * 0.9 )
56 + .background(
57 + LinearGradient(gradient: Gradient(colors: [Color(hex: 0x1AADCC), Color(hex: 0x83C062)]), startPoint: .top, endPoint: .bottom)
58 + )
59 +
60 + }
61 + .frame(width:self.uiscreen.width, height:self.uiscreen.height )
52 } 62 }
53 } 63 }
54 64
......