@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user