Add available check

This commit is contained in:
Vlad 2020-08-08 00:51:31 +03:00
parent 1c98858aa9
commit a962e3f9f2
1 changed files with 6 additions and 2 deletions

View File

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