效果:
代码:
struct ContentView: View {
@State private var progressValue = 0.0
var body: some View {
VStack{
Link("淘宝", destination: URL(string: "https://taobao.com")!)
Link(destination: /*@START_MENU_TOKEN@*/URL(string: "https://www.apple.com")!/*@END_MENU_TOKEN@*/){
Image("iconImage")
}
}
}
}
网友评论