I have code that creates a UISearchController\' in my UIVIew\'sviewDidLoad`.
self.resultSearchController = ({
let controller = UISearch
It's not a bug. It seems that you have to avoid creating ViewControllers without presenting them. So after SomeViewController() or let variable: SomeViewController you have to call something like this self.presentViewController(yourViewController ...etc). If you don't do that, you will get this warning when this view controller will be dealocated.