Update based on comments from Doug

This commit is contained in:
David Langley
2021-09-09 17:00:45 +01:00
parent 2d212ddd8e
commit c80dfcd1d0
8 changed files with 42 additions and 45 deletions
@@ -25,7 +25,7 @@ final class TemplateUserProfileCoordinator: Coordinator {
// MARK: Private
private let parameters: TemplateUserProfileCoordinatorParameters
private let templateUserProfileViewController: UIViewController
private let templateUserProfileHostingController: UIViewController
private var templateUserProfileViewModel: TemplateUserProfileViewModelProtocol
// MARK: Public
@@ -43,7 +43,7 @@ final class TemplateUserProfileCoordinator: Coordinator {
let view = TemplateUserProfile(viewModel: viewModel)
.addDependency(AvatarService.instantiate(mediaManager: parameters.session.mediaManager))
templateUserProfileViewModel = viewModel
templateUserProfileViewController = VectorHostingController(rootView: view)
templateUserProfileHostingController = VectorHostingController(rootView: view)
}
// MARK: - Public
@@ -59,6 +59,6 @@ final class TemplateUserProfileCoordinator: Coordinator {
}
func toPresentable() -> UIViewController {
return self.templateUserProfileViewController
return self.templateUserProfileHostingController
}
}