Hi, finally starting to understand the coordinator pattern!
There is a bug in the final app:
When you swipe down to manually dismiss the modally presented ‘VisitType’ view controller, the performOnDismissed method is never triggered. The child coordinator is never removed.
Pressing the ‘cancel’ button on the ‘VisitType’ view controller calls performOnDismissed so the child coordinator is removed.
Obviously, sometimes people just swipe down to dismiss the view controller. How do we remove the child coordinator in these cases?