Coordinator stops (#207)

* Add `stop` method to `Coordinator`

* Use new stop method to cleanup room screen

* Call stop implicitly when removing a child coordinator

* Revert placeholder avatar font change

* Fix PR remarks
This commit is contained in:
ismailgulek
2022-09-23 15:04:35 +03:00
committed by GitHub
parent d7dad1353b
commit b03a02351a
19 changed files with 56 additions and 9 deletions
@@ -47,6 +47,10 @@ class AuthenticationCoordinator: Coordinator, Presentable {
func toPresentable() -> UIViewController {
navigationRouter.toPresentable()
}
func stop() {
stopLoading()
}
// MARK: - Private
@@ -99,6 +99,10 @@ final class LoginCoordinator: Coordinator, Presentable {
func toPresentable() -> UIViewController {
loginHostingController
}
func stop() {
stopLoading()
}
// MARK: - Private
@@ -82,6 +82,10 @@ final class ServerSelectionCoordinator: Coordinator, Presentable {
func toPresentable() -> UIViewController {
serverSelectionHostingController
}
func stop() {
stopLoading()
}
// MARK: - Private
@@ -108,6 +108,10 @@ final class SoftLogoutCoordinator: Coordinator, Presentable {
func toPresentable() -> UIViewController {
softLogoutHostingController
}
func stop() {
stopLoading()
}
// MARK: - Private