Memory Leak when using UIAdaptivePresentationControllerDelegate inside a UINavigationController

Originator:obusek
Number:rdar://FB7621238 Date Originated:2020-03-10
Status:Open Resolved:
Product:UIKit Product Version:iOS 13
Classification:Unexpected Behavior Reproducible:100%
 
UIViewControllers that adopt the UIAdaptivePresentationControllerDelegate protocol and set the presentationController?.delegate will not be released from memory when dismissed if the modally presented UIViewController is inside a UINavigationController.


deinit will not be called on the modally presented view controller. Instruments will confirm the leak as well.

This happens when the Deployment Target is iOS 11 or iOS 13.

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!