I'd like to present share menu with multiple options. I've created a Menu and added all ShareLink views. I can tap the share button, but if I select a ShareLink, nothing happens. No error message.
This is the only way I can think of to create such a "share menu":
ToolbarItemGroup(placement: SwiftUI.ToolbarItemPlacement.navigationBarTrailing) {
Menu {
ShareLink(
item: URL(string: "https://www.apple.com")!,
preview: SharePreview(
"Test 123",
image: Image(systemName: "plus")
)
)
ShareLink(
item: URL(string: "https://www.microsoft.com")!,
preview: SharePreview(
"Tests 321",
image: Image(systemName: "minus")
)
)
} label: {
Image(systemName: "square.and.arrow.up")
}
}
