Following the answer here: Set QuickLook window size when previewing with QLPreviewingController.preparePreviewOfFile I set the preferredContentSize of the QL
preferredContentSize
QL