mirror of
https://github.com/Dimillian/IceCubesApp.git
synced 2024-11-29 19:51:08 +00:00
Added Share button in status context menu (#37)
This commit is contained in:
parent
75cd23df5d
commit
2414c8fd10
1 changed files with 7 additions and 1 deletions
|
@ -38,6 +38,12 @@ struct StatusRowContextMenu: View {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if let url = viewModel.status.reblog?.url ?? viewModel.status.url {
|
||||||
|
ShareLink(item: url) {
|
||||||
|
Label("Share this post", systemImage: "square.and.arrow.up")
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if let url = viewModel.status.reblog?.url ?? viewModel.status.url {
|
if let url = viewModel.status.reblog?.url ?? viewModel.status.url {
|
||||||
Button { UIApplication.shared.open(url) } label: {
|
Button { UIApplication.shared.open(url) } label: {
|
||||||
Label("View in Browser", systemImage: "safari")
|
Label("View in Browser", systemImage: "safari")
|
||||||
|
|
Loading…
Reference in a new issue