Vasilis

wallet initial commit

......@@ -23,7 +23,7 @@ extension WalletView {
.offset(y: self.uiscreen.height * 0.015)
}
}
Text("Wallet")
Text("My loyalty wallet")
.frame(width: self.uiscreen.width * 0.8, height: self.uiscreen.height * 0.025, alignment: .center)
.offset( y: self.uiscreen.height * 0.02)
.font(.system(size: 15))
......@@ -40,15 +40,25 @@ struct WalletView: View {
func goBack(){
for subview in parentView.subviews {
if(subview.tag == 1) {
if(subview.tag == 3) {
subview.removeFromSuperview()
}
}
}
var body: some View {
headerView(goBack: goBack)
Text("Wallet View")
VStack {
headerView(goBack: goBack)
ScrollView(showsIndicators: false) {
}
.frame(width:self.uiscreen.width, height:self.uiscreen.height * 0.9 )
.background(
LinearGradient(gradient: Gradient(colors: [Color(hex: 0x1AADCC), Color(hex: 0x83C062)]), startPoint: .top, endPoint: .bottom)
)
}
.frame(width:self.uiscreen.width, height:self.uiscreen.height )
}
}
......