How to set the size of an action extension?

Hi, I'm developing an action extension. I've set NSExtensionActionWantsFullScreenPresentation to NO in info.plist and the extension view controller appears in a form sheet on iPad, as expected. But I can't change the default size. Would you know a way to configure it?

Well... Simply enough:


override func viewDidLoad() {
     super.viewDidLoad()
     preferredContentSize = CGSize(width: 540, height: 620)
}
How to set the size of an action extension?
 
 
Q