INUIHostedViewControlling ViewController's Life Cycle Events not being Called

I am implementing a new Intents UI Extension and am noticing that the viewWillDisappear, viewDidDisappear, and deinit methods are not being called on my UIViewController that implements INUIHostedViewControlling, when pressing the "Done" button and dismissing the UIViewController.

This causes the memory for the UI Extension to slowly increase each time I re-run the UI Extension until it reaches the 120MB limit and crashes.

Any ideas as to what's going on here and how to solve this issue?

Worth noting that while the memory does continuously increase on iOS versions before iOS 17, only in 17 and later does the 120MB memory limit kick in and crash the extension.

INUIHostedViewControlling ViewController's Life Cycle Events not being Called
 
 
Q