added logic to remember tabview but it doesnt work
This commit is contained in:
Trey t
2022-01-30 19:49:43 -06:00
parent 566c48ab01
commit 9afbfb2e8e
3 changed files with 21 additions and 5 deletions

View File

@@ -23,6 +23,19 @@ struct SwitchableView: View {
HeaderPercView(fakeData: false, backDays: daysBack)
.opacity(currentViewIdx == 1 ? 1 : 0)
.allowsHitTesting(false)
VStack {
HStack {
Spacer()
Image(systemName: "arrow.triangle.2.circlepath.circle")
.resizable()
.frame(width: 25, height: 25, alignment: .trailing)
}
Spacer()
}
.padding(.trailing, 8)
.padding(.top, 8)
.allowsHitTesting(false)
}
.padding(.top, -7)
@@ -32,6 +45,10 @@ struct SwitchableView: View {
.frame(maxWidth: .infinity, alignment: .center)
.padding(.top, -12)
}
.background(
Color(UIColor.systemBackground)
)
.clipShape(RoundedRectangle(cornerRadius: 25, style: .continuous))
.contentShape(Rectangle())
.padding(.bottom, 30)
.onTapGesture {