fix runtime crash
This commit is contained in:
parent
96a59c809e
commit
a503259eb1
|
|
@ -33,6 +33,15 @@ public final class PaginationDataLoadingModel<Cursor: ResettableRxDataSourceCurs
|
|||
|
||||
}
|
||||
|
||||
// Additional init with closure typealias fixes swift
|
||||
// runtime crash inside emptyResultChecker.
|
||||
|
||||
public typealias PaginationEmptyResultChecker = (Cursor.ResultType) -> Bool
|
||||
|
||||
public override init(dataSource: Cursor, emptyResultChecker: @escaping PaginationEmptyResultChecker) {
|
||||
super.init(dataSource: dataSource, emptyResultChecker: emptyResultChecker)
|
||||
}
|
||||
|
||||
override public func reload() {
|
||||
load(.reload)
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue