Post

Replies

Boosts

Views

Activity

Changing window's rootViewController, calls `dismiss(animated:completion:)` method of the previous VC in iOS 13 beta, Xcode 11 beta 6
I noticed that in when running my project with Xcode 11.0 beta 6(used to happen in beta 2 as well), when I change the rootViewController from a UIViewController(let's call it VC1) to another UIViewController(let's call it VC2), the dismiss dismiss(animated:completion:) method of VC1 gets called. I ran the exact same project on a previous version of Xcode(i.e. Version 10.2.1), the `dismiss(animated:completion:)` method on VC1 is not called.The documentation for this method mentions it in context of a presentingViewController. So is this an intended behaviour, because I could not find any documentation mentioning this as a change
0
0
585
Aug ’19