I have a small problem I am trying to solve and it’s been 2 hours and unfortunately didn’t do it. so this how it looks:
and this is the code:
struct Toolbar: View {
var body: some View {
TabView {
VStack {
Circle()
.foregroundColor(.yellow)
.frame(width: 500)
.offset(x: -100 ,y:-500)
}
.tabItem {
Label("home 1", systemImage: "house")
}
VStack {
Circle()
.foregroundColor(.yellow)
.frame(width: 500)
.offset(x: 0 ,y:-500)
}
.tabItem {
Label("home 2", systemImage: "house")
}
}
}
}
What I am trying to do is… to add a small animation for the movement of the circle throw views. any idea how can I achieve that ??