如何导航出ActionSheet
我只能通过Text
但不能通过的地方NavigationLink
?
示例代码:
struct DemoActionSheetNavi: View {
@State private var showingSheet = false
var body: some View {
NavigationView {
Text("Test")
.actionSheet(isPresented: $showingSheet) {
ActionSheet(
title: Text("What do you want to do?"),
message: Text("There's only one choice..."),
buttons: [
.default(Text("How to navigate from here to HelpView???")),
])
}
}
}
}