Code correction

This commit is contained in:
Vlad 2020-08-26 23:51:46 +03:00
parent b2b386185c
commit d29903d51b
1 changed files with 7 additions and 1 deletions

View File

@ -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 {