From d29903d51bc90abca164a50e478d58c9fd7ed0bf Mon Sep 17 00:00:00 2001 From: Vlad Date: Wed, 26 Aug 2020 23:51:46 +0300 Subject: [PATCH] Code correction --- .../Sources/Views/RefreshControl/RefreshControl.swift | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/TIUIElements/Sources/Views/RefreshControl/RefreshControl.swift b/TIUIElements/Sources/Views/RefreshControl/RefreshControl.swift index 452fd057..64c4baab 100644 --- a/TIUIElements/Sources/Views/RefreshControl/RefreshControl.swift +++ b/TIUIElements/Sources/Views/RefreshControl/RefreshControl.swift @@ -32,7 +32,13 @@ open class RefreshControl: UIRefreshControl { performRefreshAction() } } - + + open override func endRefreshing() { + CFRunLoopPerformBlock(CFRunLoopGetMain(), CFRunLoopMode.defaultMode.rawValue) { + super.endRefreshing() + } + } + private func performRefreshAction() { CFRunLoopPerformBlock(CFRunLoopGetMain(), CFRunLoopMode.defaultMode.rawValue) { [weak self] in guard let action = self?.action else {