Remove available check

This commit is contained in:
Vlad 2020-08-08 02:10:37 +03:00
parent 174885d172
commit fa7260cab2
1 changed files with 2 additions and 6 deletions

View File

@ -292,12 +292,8 @@ final public class PaginationWrapper<Cursor: ResettableRxDataSourceCursor, Deleg
}
@objc private func refreshAction() {
if #available(iOS 10.0, *) {
RunLoop.current.perform(inModes: [.default]) { [weak self] in
self?.reload()
}
} else {
reload()
CFRunLoopPerformBlock(CFRunLoopGetMain(), CFRunLoopMode.defaultMode.rawValue) { [weak self] in
self?.reload()
}
}