Skip to content

Commit 4cfd920

Browse files
committed
remove SpacerCell used in decorations
1 parent 6dde0e0 commit 4cfd920

File tree

4 files changed

+7
-72
lines changed

4 files changed

+7
-72
lines changed

Components/Sources/Collection/CollectionSpacerCell.swift

Lines changed: 0 additions & 32 deletions
This file was deleted.

Components/Sources/Common/Utils/Decoration+Provider.swift

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,18 +13,18 @@ extension Decoration {
1313
var tableProvider: any DecorationProvider {
1414
switch self {
1515
case .space(let model):
16-
return TableDecorationProvider<TableSpacerCell>(model: model,
17-
hash: "space",
18-
hashCombiner: CommonHashCombiner())
16+
return TableDecorationProvider<TableWrappedCell<SpacerView>>(model: model,
17+
hash: "space",
18+
hashCombiner: CommonHashCombiner())
1919
}
2020
}
2121

2222
var collectionProvider: any DecorationProvider {
2323
switch self {
2424
case .space(let model):
25-
return CollectionDecorationProvider<CollectionSpacerCell>(model: model,
26-
hash: "space",
27-
hashCombiner: CommonHashCombiner())
25+
return CollectionDecorationProvider<CollectionWrappedCell<SpacerView>>(model: model,
26+
hash: "space",
27+
hashCombiner: CommonHashCombiner())
2828
}
2929
}
3030

Components/Sources/Table/TableSpacerCell.swift

Lines changed: 0 additions & 33 deletions
This file was deleted.

Example/ReactiveDataDisplayManager/Collection/TwoDirectionPaginatableCollectionViewController/TwoDirectionPaginatableCollectionViewController.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ final class TwoDirectionPaginatableCollectionViewController: UIViewController {
5757
private var currentTopPage = 0
5858
private var currentBottomPage = 0
5959

60-
private lazy var emptyCell = CollectionSpacerCell.rddm.baseGenerator(with: CollectionSpacerCell.Model(size: .height(0)), and: .class)
60+
private lazy var emptyCell = SpacerView.rddm.collectionGenerator(with: .init(size: .height(0)))
6161

6262
// MARK: - UIViewController
6363

0 commit comments

Comments
 (0)