You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Такие вещи navigationController?.navigationBar.isUserInteractionEnabled = true лучше отдавать NavigationController, так как обращение к navigationController? из ViewController нарущает прицип SRP. ViewController не должен знать и настривать navigationController. Для этого он может делегировать (ссылка) эту работу NavigationController классу, который есть в проекте. С использованием паттерна Coordinator, эта цепочка выглядит следующим образом ViewController -> ViewModel -> Coordinator. Те ViewController вызывает метод ViewModel, а ViewModel через делегат дергает Coordinator, еоторый содержит ссылку на NavigationController (смотреть замечание по архитектуре)
No description provided.
The text was updated successfully, but these errors were encountered: