在iOS13中,正如在2019年WWDC期间的Platforms State of the Union中所述,苹果引入了一种新的默认卡演示文稿.为了强制全屏,您必须使用以下命令明确指定:
let vc = UIViewController()
vc.modalPresentationStyle = .fullScreen //or .overFullScreen for transparency
self.present(vc, animated: true, completion: nil)