Perform a deeplink from SwiftUI widget on tap
问题 I have a simple widget (medium-sized) with two texts, and what I want is to be able to perform a deep link to lead the user to a specific section of my app, but I can't seem to find a way to do so. The view I have written (which is very simple): HStack { Text("FIRST ITEM") Spacer() Text("SECOND ITEM") } I have already tried to replace Text("SECOND ITEM") with Link("SECOND ITEM destination: URL(string: myDeeplinkUrl)!) but it doesn't work either. 回答1: In the Widget view you need to create a