diff --git a/PanModal/Controller/PanModalPresentationController.swift b/PanModal/Controller/PanModalPresentationController.swift index 83eeb12..c06890c 100644 --- a/PanModal/Controller/PanModalPresentationController.swift +++ b/PanModal/Controller/PanModalPresentationController.swift @@ -711,15 +711,14 @@ private extension PanModalPresentationController { func observe(scrollView: UIScrollView?) { scrollObserver?.invalidate() scrollObserver = scrollView?.observe(\.contentOffset, options: .old) { [weak self] scrollView, change in - Task { @MainActor [weak self] in - /** - Incase we have a situation where we have two containerViews in the same presentation - */ - guard self?.containerView != nil - else { return } - self?.didPanOnScrollView(scrollView, change: change) - } + /** + Incase we have a situation where we have two containerViews in the same presentation + */ + guard self?.containerView != nil + else { return } + + self?.didPanOnScrollView(scrollView, change: change) } }