I have custom ViewController and want to show it as alert. When i do it like below, my custom ViewController does not fill the entire content of the UIAlertController and scroll bar is shown. How to do that and also how to disable scrolling.
let alert : UIAlertController = UIAlertController(title: nil, message: nil, preferredStyle: .alert)
alert.setValue(myCustomViewController, forKey: "contentViewController")
self.present(alert, animated: true)