HStack {
VStack {
NavigationLink(destination: Convos()) {
Text("Go to Convos")
}
ZStack {
Circle()
.fill(Color.white)
.frame(width: 55,height: 55,alignment: .center)
.shadow(color: .gray,radius: 1.5,y: 3)
Image(systemName: "map").resizable().frame(width: 30,height: 30).foregroundColor(Color("purple"))
}
}
}
我需要在该圆圈上方有一个带有地图的按钮,该按钮会将我带到另一个视图,即Convos()。我已经尝试添加NavigationView和Button,但是不确定是否编写了正确的语法。有其他方法可以做到这一点吗?而不是像从普通的List / NavigationLink那样从右侧进入视图,有没有办法使View从左侧或底部进入/选择?谢谢