where SearchDisplayViewController is your (non-xib, code only) custom view controller. :
1 2 3 4 5 6 7 |
DispatchQueue.main.async { let resultsController = SearchDisplayViewController() self.present(resultsController, animated: true, completion: { print("\(#function) - Search Display Results presented!") }) } |