From 360bcde3f9f5519e06c7b1247b7cb91f165dbe5c Mon Sep 17 00:00:00 2001 From: Pavel Lukandiy Date: Tue, 22 May 2018 14:03:40 +0300 Subject: [PATCH] Review notes --- CHANGELOG.md | 2 +- .../PaginationDataLoading/PaginationWrapperDelegate.swift | 8 ++++++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 827cf0d5..44a1875c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,7 +1,7 @@ # Changelog ### 0.7.14 -- **Update**: `PaginationWrapper` separating state views from data loading. +- **[Breaking Change]**: `PaginationWrapper` separating state views from data loading. ### 0.7.13 - **Update**: Migrate from `Variable` to `BehaviorRelay`. diff --git a/Sources/Structures/DataLoading/PaginationDataLoading/PaginationWrapperDelegate.swift b/Sources/Structures/DataLoading/PaginationDataLoading/PaginationWrapperDelegate.swift index c33bde08..8ee35da1 100644 --- a/Sources/Structures/DataLoading/PaginationDataLoading/PaginationWrapperDelegate.swift +++ b/Sources/Structures/DataLoading/PaginationDataLoading/PaginationWrapperDelegate.swift @@ -44,3 +44,11 @@ public protocol PaginationWrapperDelegate: class { /// Handles empty data state. func clearData() } + +public extension PaginationWrapperDelegate + where DataSourceType: ResettableRxDataSourceCursor, + DataSourceType.ResultType == [DataSourceType.Element] { + + /// Convenient typealias. + typealias PaginationWrapperType = PaginationWrapper +}