Skip to content

Commit

Permalink
group create ui: allow deleting members by swiping
Browse files Browse the repository at this point in the history
  • Loading branch information
FriedrichAltheide committed Nov 26, 2023
1 parent 0baaa67 commit ef8df7d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Monal/Classes/CreateGroupMenu.swift
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,9 @@ struct CreateGroupMenu: View {
Section(header: Text("Selected Group Members")) {
ForEach(self.selectedContacts, id: \.self) { contact in
ContactEntry(contact: contact)
}
}.onDelete(perform: { indexSet in
self.selectedContacts.remove(atOffsets: indexSet)
})
}
Section {
Button(action: {
Expand Down

0 comments on commit ef8df7d

Please sign in to comment.