i have a view and i want to display a UIViewController with custom size. But i didn't succeed. Here is my code.
var vx = KeyboardViewController()
vx.modalPresentationStyle = UIModalPresentationStyle.FormSheet
vx.preferredContentSize = CGSizeMake(self.view.frame.width, 150)
self.presentViewController(vx, animated: true, completion: nil)
This UIViewController is displayed in the full screen size