Group Group Group Group Group Group Group Group Group

Chapter 23: Coordinator Pattern (Bug)

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?

Thanks!

@jrg.developer Can you please help with this when you get a chance? Thank you - much appreciated! :]