New App Layout: added suppport for room invites in the all chats screen

This commit is contained in:
Gil Eluard
2022-08-22 13:00:34 +02:00
parent 9152dfb116
commit efe53ee85e
14 changed files with 535 additions and 60 deletions
@@ -37,7 +37,7 @@ struct SpaceSelectorBottomSheetCoordinatorParameters {
}
}
final class SpaceSelectorBottomSheetCoordinator: Coordinator, Presentable {
final class SpaceSelectorBottomSheetCoordinator: NSObject, Coordinator, Presentable {
// MARK: - Properties
@@ -62,6 +62,9 @@ final class SpaceSelectorBottomSheetCoordinator: Coordinator, Presentable {
self.parameters = parameters
self.navigationRouter = navigationRouter
self.spaceIdStack = []
super.init()
self.setupNavigationRouter()
}
@@ -89,6 +92,8 @@ final class SpaceSelectorBottomSheetCoordinator: Coordinator, Presentable {
sheetController.prefersGrabberVisible = true
sheetController.selectedDetentIdentifier = .medium
sheetController.prefersScrollingExpandsWhenScrolledToEdge = true
self.navigationRouter.toPresentable().presentationController?.delegate = self
}
private func createSpaceSelectorCoordinator(parentSpaceId: String?) -> SpaceSelectorCoordinator {
@@ -151,3 +156,13 @@ final class SpaceSelectorBottomSheetCoordinator: Coordinator, Presentable {
Analytics.shared.trackInteraction(.spacePanelSwitchSpace)
}
}
// MARK: - UIAdaptivePresentationControllerDelegate
extension SpaceSelectorBottomSheetCoordinator: UIAdaptivePresentationControllerDelegate {
func presentationControllerDidDismiss(_ presentationController: UIPresentationController) {
completion?(.cancel)
}
}