Dismissing modal view controller stack
<p>Given the following view controller layout.</p>

<p><a href="https://i.stack.imgur.com/rxvIV.png" rel="noreferrer"><img src="https://i.stack.imgur.com/rxvIV.png" alt="View Controller Layout"></a></p>

<p>We build a stack of modal view controllers by first presenting <code>B</code> on <code>A</code> and then presenting <code>C</code> on <code>B</code>. According to the <a href="https://developer.apple.com/library/ios/documentation/UIKit/Reference/UIViewController_Class/index.html#//apple_ref/occ/instm/UIViewController/dismissViewControllerAnimated:completion:" rel="noreferrer">Apple documentation on <code>dismiss(animated:completion:)</code></a>, calling it on <code>A</code> should actually dismiss the topmost view controller (<code>C</code> in this case) in an animated fashion and all intermediate view controllers without animation. What happens though is that <code>C</code> gets dismissed without animation and <code>B</code> is dismissed in an animated fashion.</p>

<p>I put up an <a href="https://github.com/mAu888/view-controllers-dismissal" rel="noreferrer">Xcode project on GitHub</a> that replicates that behaviour. Am I missing something or am I misunderstanding the documentation here?</p>