Open AleksanderMaj opened 7 years ago
Yes, you're absolutely right. I have no idea why presentedViewController
is accessed. This code should look like this:
func dismiss(animated: Bool, completion: (() -> Void)?) {
viewController?.dismiss(animated: animated, completion: completion)
}
ModuleStack has a
dismiss()
method:dismiss()
method is supposed to dismiss the module's view controller, right? Then I think accessingpresentedViewController
is wrong.