mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-03 06:55:59 +00:00
Add space management to the flows. (#4978)
* Add the menu entries to add/remove rooms to/from a space. * Add a user indicator to SpaceAddRoomsScreen. * Reset the SpaceRoomListProxy after adding/removing any children. * Calm the animations down a bit when entering EditMode on the SpaceScreen.
This commit is contained in:
@@ -63,7 +63,8 @@ struct SpaceRoomCell: View {
|
||||
action(.select(spaceServiceRoom))
|
||||
} label: {
|
||||
HStack(spacing: 0) {
|
||||
if isEditModeActive {
|
||||
if isEditModeActive,
|
||||
!spaceServiceRoom.isSpace { // We only support selection of rooms (so don't show this while removing the cell).
|
||||
ZStack {
|
||||
ListRowAccessory.multiSelection(isSelected)
|
||||
}
|
||||
@@ -87,6 +88,9 @@ struct SpaceRoomCell: View {
|
||||
}
|
||||
}
|
||||
.padding(.horizontal, horizontalInsets)
|
||||
// Ensure the EditMode transition stays inside this cell if there are other insertions/removals in the list.
|
||||
// Seems to slow down the animations a bit in Xcode previews but its fine in the simulator and on a device.
|
||||
.drawingGroup()
|
||||
.accessibilityElement(children: .combine)
|
||||
}
|
||||
.buttonStyle(SpaceRoomCellButtonStyle(isHighlighted: isHighlighted))
|
||||
|
||||
Reference in New Issue
Block a user