Code below I copied from chapter 23. The function’s name is present
but it is actually pushing. Am I missing a spot with this whole coordinator concept, whichever source I check, authors just ignore present
and focus on push
public func present(_ viewController: UIViewController,
animated: Bool,
onDismissed: (() -> Void)?) {
onDismissForViewController[viewController] = onDismissed
navigationController.pushViewController(viewController,
animated: animated)
}