guard let topVC = UIApplication.currentTopViewController() else {
return
}
safeSelf.playerVC.modalPresentationStyle = .overFullScreen
let transition = CATransition()
transition.duration = 0.5
transition.type = CATransitionType.push
transition.subtype = CATransitionSubtype.fromRight
transition.timingFunction = CAMediaTimingFunction(name:CAMediaTimingFunctionName.easeInEaseOut)
topVC.view.window!.layer.add(transition, forKey: kCATransition)
topVC.present(safeSelf.playerVC, animated: false) {
}
'Swift > UIViewController' 카테고리의 다른 글
[SWIFT]UIActivityViewController 공유하기 (0) | 2023.10.26 |
---|---|
[SWIFT]LogViewController 디버깅 로그 기록용 (0) | 2023.10.25 |
[SWIFT]중첩된 ViewControll 한번에 Dismiss 하기 (0) | 2023.06.08 |
[SWIFT]UIDocumentPickerViewController (0) | 2023.06.07 |
[SWIFT]뷰 회전 관련 작업 : viewWillTransition (0) | 2023.04.24 |