Compare commits

...

2 Commits

2 changed files with 9 additions and 2 deletions

View File

@ -37,9 +37,9 @@ struct ComposeAttachmentRow: View {
}
}
Button(action: self.removeAttachment) {
Button(role: .destructive, action: self.removeAttachment) {
Label("Delete", systemImage: "trash")
}.foregroundStyle(.red)
}
} previewIfAvailable: {
ComposeAttachmentImage(attachment: attachment, fullSize: true)
}

View File

@ -45,6 +45,13 @@ struct PinnedTimelinesView: View {
.foregroundColor(Color(.lightGray))
.accessibilityHidden(true)
}
.contextMenu {
Button(role: .destructive) {
pinnedTimelines.removeAll(where: { $0.id == timeline.id })
} label: {
Label("Remove Pinned Timeline", systemImage: "trash")
}
}
}
.onMove { indices, newOffset in
pinnedTimelines.move(fromOffsets: indices, toOffset: newOffset)