Skip to content

Commit 5763b4d

Browse files
committed
fix requirement for CollectionContext
1 parent 4debacb commit 5763b4d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Components/Sources/Collection/Extensions/CollectionContext+CollectionWrappedCell.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,12 @@ public extension CollectionContext {
1515
StackView.rddm.collectionGenerator(with: model, and: .class)
1616
}
1717

18-
static func viewNib<T: UICollectionViewCell & ConfigurableItem>(type: T.Type,
18+
static func viewNib<T: UIView & ConfigurableItem>(type: T.Type,
1919
model: T.Model) -> BaseCollectionCellGenerator<CollectionWrappedCell<T>> {
2020
T.rddm.collectionGenerator(with: model, and: .nib)
2121
}
2222

23-
static func viewClass<T: UICollectionViewCell & ConfigurableItem>(type: T.Type,
23+
static func viewClass<T: UIView & ConfigurableItem>(type: T.Type,
2424
model: T.Model) -> BaseCollectionCellGenerator<CollectionWrappedCell<T>> {
2525
T.rddm.collectionGenerator(with: model, and: .class)
2626
}

0 commit comments

Comments
 (0)