Какие проблемы есть в коде
Условие задачи
swiftfinal class AppCoordinator {
let navigationController: UINavigationController
let disposeBag = DisposeBag()
func presentProfile() {
let controller = ProfileController()
controller.rx.didTapLogout
.bind(onNext: { [weak navigationController] in
navigationController?.popToRootViewController(animated: true)
})
.disposed(by: disposeBag)
navigationController.present(controller, animated: true)
}
}