title: Show alert after dismissing multiple controllers
body: <p>I have the following view controller flow:</p>
  <pre><code>Controller A -&gt; Controller B -&gt; Controller C -&gt; Controller D
  </code></pre>
  <p>In Controller D, when I dismiss it, it dismisses controllers D, C, and B, so that it shows Controller A again. Now, what I want to do is show an alert controller in Controller A when Controller D is dismissed.</p>
  <p>I know I can create a delegate/protocol so that I call a specific function when Controller D is dismissed, but this really only works well when it's between two controllers, not four.</p>
  <p>So what would the best solution here be? The only other thing I've thought of doing is creating an SQL table where I update the value of <code>showAlertController</code> to <code>true</code> and then check if that value is true in Controller A, but this seems like bad practice and a bit hacky.</p>