mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-04-26 11:30:50 +02:00
New App Layout: added suppport for room invites in the all chats screen
This commit is contained in:
+16
-1
@@ -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)
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user