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) {
}

+ Recent posts