2019年11月8日

swift ios 13 full screen view

 

            if let controller = storyboard?.instantiateViewController(withIdentifier: "ARController") as? ARViewController {                
                if #available(iOS 13.0, *) {

                    controller.modalPresentationStyle = .fullScreen
                    
                } else {
                    // Fallback on earlier versions
                }
                present(controller, animated: true, completion: nil)
            }

沒有留言:

張貼留言