diff --git a/Sources/BottomSheet/Core/Presentation/BottomSheetPresentationController.swift b/Sources/BottomSheet/Core/Presentation/BottomSheetPresentationController.swift index 32a2355..9d81b40 100644 --- a/Sources/BottomSheet/Core/Presentation/BottomSheetPresentationController.swift +++ b/Sources/BottomSheet/Core/Presentation/BottomSheetPresentationController.swift @@ -535,8 +535,10 @@ extension BottomSheetPresentationController: UIViewControllerAnimatedTransitioni let completion = { (completed: Bool) in transitionContext.completeTransition(completed && !transitionContext.transitionWasCancelled) // For fix bug: https://openradar.appspot.com/FB9075949 - if transitionContext.transitionWasCancelled { + if #available(iOS 13, *), transitionContext.transitionWasCancelled { + let sourceViewFrame = sourceView.frame sourceView.frame = .zero + sourceView.frame = sourceViewFrame } }