parent
f88bf552af
commit
6eee97759e
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue