Avatar
おかげでこんな処理入れないといけないです enum ViewControllerInteractiveEvent { case popGestureCompleted case pushedOrPoped case cancelled } extension UIViewController { func hoge_receiveInteractiveAction(action: ((ViewControllerInteractiveEvent) -> Void)?) { if let coordinator = self.transitionCoordinator, coordinator.initiallyInteractive { coordinator.notifyWhenInteractionEnds({ context in if context.isCancelled { action?(.cancelled) } else { action?(.popGestureCompleted) } }) } else { action?(.pushedOrPoped) } } } (edited)