Skip to content

Commit ee5f3b3

Browse files
committed
Refactoring
1 parent ca16cce commit ee5f3b3

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Sources/CollectionViewManager.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ open class CollectionViewManager: NSObject {
132132
/// - Parameter indexPath: The index path locating the item in the collection view.
133133
/// - Returns: A reusable view item associated with reusable view of the collection, or nil if the view item
134134
/// wasn't added to manager or indexPath is out of range.
135-
open func reusableViewItem(for indexPath: IndexPath, and kind: String) -> CollectionViewReusableViewItem? {
135+
open func reusableViewItem(for indexPath: IndexPath, kind: String) -> CollectionViewReusableViewItem? {
136136
guard let sectionItem = sectionItem(for: indexPath),
137137
sectionItem.reusableViewItems.count > indexPath.row else {
138138
return nil

Sources/Extensions/CollectionViewManager+UICollectionViewDataSource.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ extension CollectionViewManager: UICollectionViewDataSource {
2626
open func collectionView(_ collectionView: UICollectionView,
2727
viewForSupplementaryElementOfKind kind: String,
2828
at indexPath: IndexPath) -> UICollectionReusableView {
29-
guard let reusableViewItem = self.reusableViewItem(for: indexPath, and: kind) else {
29+
guard let reusableViewItem = self.reusableViewItem(for: indexPath, kind: kind) else {
3030
return UICollectionReusableView()
3131
}
3232
let kind = reusableViewItem.type.kind

0 commit comments

Comments
 (0)