how to navigate out of a ActionSheet
where I can only Pass a Text
but not a NavigationLink
?
Sample Code:
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???")),
])
}
}
}
}