Given the following view controller layout.
We build a stack of modal view controllers by first presenting B
on A
and then presenting C
on B
. According to the Apple documentation on dismiss(animated:completion:)
, calling it on A
should actually dismiss the topmost view controller (C
in this case) in an animated fashion and all intermediate view controllers without animation. What happens though is that C
gets dismissed without animation and B
is dismissed in an animated fashion.
I put up an Xcode project on GitHub that replicates that behaviour. Am I missing something or am I misunderstanding the documentation here?