mirror of
https://github.com/Dimillian/IceCubesApp.git
synced 2024-12-22 23:26:37 +00:00
Update StatusRowContextMenu to include a "Copy Text" option (#36)
* Add option to re-hide spoiler content after expanding Uses the same logic as the "Show more" button, but in reverse. This allows a user to hide the content that they expanded. * Use .toggle() method instead of multiple if statements * Update StatusRowContextMenu to have Copy Text option * Update pasteboard string to contain rawText status
This commit is contained in:
parent
12fc8cd475
commit
f9f6ffc71e
1 changed files with 6 additions and 0 deletions
|
@ -49,6 +49,12 @@ struct StatusRowContextMenu: View {
|
|||
Label("View in Browser", systemImage: "safari")
|
||||
}
|
||||
}
|
||||
|
||||
Button {
|
||||
UIPasteboard.general.string = viewModel.status.content.asRawText
|
||||
} label: {
|
||||
Label("Copy Text", systemImage: "doc.on.doc")
|
||||
}
|
||||
|
||||
if account.account?.id == viewModel.status.account.id {
|
||||
Section("Your post") {
|
||||
|
|
Loading…
Reference in a new issue