Skip to content

Commit

Permalink
register new cells for the collection view
Browse files Browse the repository at this point in the history
  • Loading branch information
OnyekachiSamuel committed Jul 17, 2020
1 parent 5a9f106 commit d362bdb
Show file tree
Hide file tree
Showing 2 changed files with 73 additions and 29 deletions.
84 changes: 64 additions & 20 deletions FightPandemics.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
/* Begin PBXBuildFile section */
0322FA13246E23D0009507D7 /* TagView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 0322FA12246E23D0009507D7 /* TagView.swift */; };
2F0420F7246A0E71005FB1D0 /* Feed.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 2F0420F6246A0E71005FB1D0 /* Feed.storyboard */; };
2F0420F9246A0E7E005FB1D0 /* FeedPrototypeViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 2F0420F8246A0E7E005FB1D0 /* FeedPrototypeViewController.swift */; };
2F04210D246A1021005FB1D0 /* Avatar.swift in Sources */ = {isa = PBXBuildFile; fileRef = 2F042108246A1021005FB1D0 /* Avatar.swift */; };
2F04210E246A1021005FB1D0 /* FeedPost.swift in Sources */ = {isa = PBXBuildFile; fileRef = 2F042109246A1021005FB1D0 /* FeedPost.swift */; };
2F04210F246A1021005FB1D0 /* AvatarView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 2F04210A246A1021005FB1D0 /* AvatarView.swift */; };
Expand Down Expand Up @@ -97,10 +96,18 @@
DC807E6F247027CF00046D67 /* SessionManager.swift in Sources */ = {isa = PBXBuildFile; fileRef = DC807E6D247027CF00046D67 /* SessionManager.swift */; };
DC807E70247027CF00046D67 /* SessionManagerError.swift in Sources */ = {isa = PBXBuildFile; fileRef = DC807E6E247027CF00046D67 /* SessionManagerError.swift */; };
DC807E73247027D800046D67 /* Fonts.swift in Sources */ = {isa = PBXBuildFile; fileRef = DC807E72247027D800046D67 /* Fonts.swift */; };
DD7B700C24875D8800B9988B /* FeedMenuBar.swift in Sources */ = {isa = PBXBuildFile; fileRef = DD7B700B24875D8800B9988B /* FeedMenuBar.swift */; };
DD7B700E2487618B00B9988B /* FeedMenuCell.swift in Sources */ = {isa = PBXBuildFile; fileRef = DD7B700D2487618B00B9988B /* FeedMenuCell.swift */; };
DD7B70102487A05F00B9988B /* FeedPostDataSource.swift in Sources */ = {isa = PBXBuildFile; fileRef = DD7B700F2487A05F00B9988B /* FeedPostDataSource.swift */; };
DD7B70122487B12B00B9988B /* FeedViewCell.swift in Sources */ = {isa = PBXBuildFile; fileRef = DD7B70112487B12B00B9988B /* FeedViewCell.swift */; };
DD06F63124C054D00003FA15 /* Reusable.swift in Sources */ = {isa = PBXBuildFile; fileRef = DD06F63024C054D00003FA15 /* Reusable.swift */; };
DD06F63324C055940003FA15 /* CollectionReusableView+FightPandemics.swift in Sources */ = {isa = PBXBuildFile; fileRef = DD06F63224C055940003FA15 /* CollectionReusableView+FightPandemics.swift */; };
DD06F63524C056330003FA15 /* UICollectionView+FightPandemics.swift in Sources */ = {isa = PBXBuildFile; fileRef = DD06F63424C056330003FA15 /* UICollectionView+FightPandemics.swift */; };
DD06F63924C071600003FA15 /* Post.swift in Sources */ = {isa = PBXBuildFile; fileRef = DD06F63824C071600003FA15 /* Post.swift */; };
DD06F63C24C0A7220003FA15 /* Section.swift in Sources */ = {isa = PBXBuildFile; fileRef = DD06F63B24C0A7220003FA15 /* Section.swift */; };
DD5F00F724C040120003A80C /* BaseCell.swift in Sources */ = {isa = PBXBuildFile; fileRef = DD5F00F624C040120003A80C /* BaseCell.swift */; };
DD5F00F924C040E70003A80C /* RequestFeedScreen.swift in Sources */ = {isa = PBXBuildFile; fileRef = DD5F00F824C040E70003A80C /* RequestFeedScreen.swift */; };
DD5F00FB24C041E20003A80C /* OfferFeedScreen.swift in Sources */ = {isa = PBXBuildFile; fileRef = DD5F00FA24C041E20003A80C /* OfferFeedScreen.swift */; };
DD5F00FD24C0421C0003A80C /* FeedCell.swift in Sources */ = {isa = PBXBuildFile; fileRef = DD5F00FC24C0421C0003A80C /* FeedCell.swift */; };
DD7B700C24875D8800B9988B /* MenuBar.swift in Sources */ = {isa = PBXBuildFile; fileRef = DD7B700B24875D8800B9988B /* MenuBar.swift */; };
DD7B700E2487618B00B9988B /* MenuCell.swift in Sources */ = {isa = PBXBuildFile; fileRef = DD7B700D2487618B00B9988B /* MenuCell.swift */; };
DD7B70122487B12B00B9988B /* AllFeedScreen.swift in Sources */ = {isa = PBXBuildFile; fileRef = DD7B70112487B12B00B9988B /* AllFeedScreen.swift */; };
DDBF1455247D49B5004E4771 /* WorkSans-Medium.otf in Resources */ = {isa = PBXBuildFile; fileRef = DDBF1454247D49B5004E4771 /* WorkSans-Medium.otf */; };
DDBF1457247D49C2004E4771 /* WorkSans-Regular.otf in Resources */ = {isa = PBXBuildFile; fileRef = DDBF1456247D49C2004E4771 /* WorkSans-Regular.otf */; };
DDBF1459247D49D6004E4771 /* WorkSans-Bold.otf in Resources */ = {isa = PBXBuildFile; fileRef = DDBF1458247D49D6004E4771 /* WorkSans-Bold.otf */; };
Expand Down Expand Up @@ -131,7 +138,6 @@
0143E4265A08346123861FE9 /* Pods-FightPandemics.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-FightPandemics.release.xcconfig"; path = "Target Support Files/Pods-FightPandemics/Pods-FightPandemics.release.xcconfig"; sourceTree = "<group>"; };
0322FA12246E23D0009507D7 /* TagView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = TagView.swift; sourceTree = "<group>"; };
2F0420F6246A0E71005FB1D0 /* Feed.storyboard */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; path = Feed.storyboard; sourceTree = "<group>"; };
2F0420F8246A0E7E005FB1D0 /* FeedPrototypeViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = FeedPrototypeViewController.swift; sourceTree = "<group>"; };
2F042108246A1021005FB1D0 /* Avatar.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = Avatar.swift; sourceTree = "<group>"; };
2F042109246A1021005FB1D0 /* FeedPost.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = FeedPost.swift; sourceTree = "<group>"; };
2F04210A246A1021005FB1D0 /* AvatarView.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = AvatarView.swift; sourceTree = "<group>"; };
Expand Down Expand Up @@ -230,10 +236,18 @@
DC807E6D247027CF00046D67 /* SessionManager.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = SessionManager.swift; sourceTree = "<group>"; };
DC807E6E247027CF00046D67 /* SessionManagerError.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = SessionManagerError.swift; sourceTree = "<group>"; };
DC807E72247027D800046D67 /* Fonts.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = Fonts.swift; sourceTree = "<group>"; };
DD7B700B24875D8800B9988B /* FeedMenuBar.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = FeedMenuBar.swift; sourceTree = "<group>"; };
DD7B700D2487618B00B9988B /* FeedMenuCell.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = FeedMenuCell.swift; sourceTree = "<group>"; };
DD7B700F2487A05F00B9988B /* FeedPostDataSource.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = FeedPostDataSource.swift; sourceTree = "<group>"; };
DD7B70112487B12B00B9988B /* FeedViewCell.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = FeedViewCell.swift; sourceTree = "<group>"; };
DD06F63024C054D00003FA15 /* Reusable.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Reusable.swift; sourceTree = "<group>"; };
DD06F63224C055940003FA15 /* CollectionReusableView+FightPandemics.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = "CollectionReusableView+FightPandemics.swift"; sourceTree = "<group>"; };
DD06F63424C056330003FA15 /* UICollectionView+FightPandemics.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = "UICollectionView+FightPandemics.swift"; sourceTree = "<group>"; };
DD06F63824C071600003FA15 /* Post.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Post.swift; sourceTree = "<group>"; };
DD06F63B24C0A7220003FA15 /* Section.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Section.swift; sourceTree = "<group>"; };
DD5F00F624C040120003A80C /* BaseCell.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = BaseCell.swift; sourceTree = "<group>"; };
DD5F00F824C040E70003A80C /* RequestFeedScreen.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = RequestFeedScreen.swift; sourceTree = "<group>"; };
DD5F00FA24C041E20003A80C /* OfferFeedScreen.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = OfferFeedScreen.swift; sourceTree = "<group>"; };
DD5F00FC24C0421C0003A80C /* FeedCell.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = FeedCell.swift; sourceTree = "<group>"; };
DD7B700B24875D8800B9988B /* MenuBar.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = MenuBar.swift; sourceTree = "<group>"; };
DD7B700D2487618B00B9988B /* MenuCell.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = MenuCell.swift; sourceTree = "<group>"; };
DD7B70112487B12B00B9988B /* AllFeedScreen.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AllFeedScreen.swift; sourceTree = "<group>"; };
DDBF1454247D49B5004E4771 /* WorkSans-Medium.otf */ = {isa = PBXFileReference; lastKnownFileType = file; path = "WorkSans-Medium.otf"; sourceTree = "<group>"; };
DDBF1456247D49C2004E4771 /* WorkSans-Regular.otf */ = {isa = PBXFileReference; lastKnownFileType = file; path = "WorkSans-Regular.otf"; sourceTree = "<group>"; };
DDBF1458247D49D6004E4771 /* WorkSans-Bold.otf */ = {isa = PBXFileReference; lastKnownFileType = file; path = "WorkSans-Bold.otf"; sourceTree = "<group>"; };
Expand Down Expand Up @@ -286,7 +300,6 @@
2F0420F6246A0E71005FB1D0 /* Feed.storyboard */,
2F0420FA246A0EBA005FB1D0 /* FeedPost */,
2F042189246CCBFA005FB1D0 /* FeedViewController.swift */,
2F0420F8246A0E7E005FB1D0 /* FeedPrototypeViewController.swift */,
);
path = Feed;
sourceTree = "<group>";
Expand All @@ -299,7 +312,6 @@
2F042109246A1021005FB1D0 /* FeedPost.swift */,
2F04210B246A1021005FB1D0 /* PostFooter.swift */,
2F0C3C43246F51BA0002B384 /* PostReactionButton.swift */,
DD7B700F2487A05F00B9988B /* FeedPostDataSource.swift */,
);
path = FeedPost;
sourceTree = "<group>";
Expand Down Expand Up @@ -457,6 +469,7 @@
DC807E5E246FB1C000046D67 /* Organization.swift */,
2F04219D246CE99C005FB1D0 /* Success.swift */,
2F72CE552468789000750785 /* User.swift */,
DD06F63824C071600003FA15 /* Post.swift */,
);
path = Models;
sourceTree = "<group>";
Expand Down Expand Up @@ -521,6 +534,8 @@
2F9EFE68245DFC9F00E86700 /* Utilities */ = {
isa = PBXGroup;
children = (
DD06F63A24C0A7000003FA15 /* Common */,
DD06F62F24C054BC0003FA15 /* Protocol */,
2F0C3C3E246ECA460002B384 /* Constraints */,
2FB341EA2468F841007E397F /* Extensions */,
DC807E67247027C700046D67 /* FileReader */,
Expand All @@ -540,6 +555,8 @@
2F04213E246A2CCD005FB1D0 /* String+FightPandemics.swift */,
2FB341EB2468F841007E397F /* UIColor+FightPandemics.swift */,
2F0C3C662471DE660002B384 /* UINavigationBar+FightPandemics.swift */,
DD06F63224C055940003FA15 /* CollectionReusableView+FightPandemics.swift */,
DD06F63424C056330003FA15 /* UICollectionView+FightPandemics.swift */,
);
path = Extensions;
sourceTree = "<group>";
Expand Down Expand Up @@ -633,11 +650,15 @@
C018DD872479C26E00EEB3FC /* Card */ = {
isa = PBXGroup;
children = (
DD5F00F624C040120003A80C /* BaseCell.swift */,
DD7B70112487B12B00B9988B /* AllFeedScreen.swift */,
DD5F00FA24C041E20003A80C /* OfferFeedScreen.swift */,
DD5F00F824C040E70003A80C /* RequestFeedScreen.swift */,
DD7B700B24875D8800B9988B /* MenuBar.swift */,
DD7B700D2487618B00B9988B /* MenuCell.swift */,
DD5F00FC24C0421C0003A80C /* FeedCell.swift */,
C018DD882479C41D00EEB3FC /* FeedCatTag.swift */,
C018DD8A2479D9C900EEB3FC /* FeedOfferReqTime.swift */,
DD7B700B24875D8800B9988B /* FeedMenuBar.swift */,
DD7B700D2487618B00B9988B /* FeedMenuCell.swift */,
DD7B70112487B12B00B9988B /* FeedViewCell.swift */,
C016A4DC248AC1C30012B185 /* CommentFooter.swift */,
C016A4E02493EFAA0012B185 /* CommentAddBox.swift */,
);
Expand Down Expand Up @@ -688,6 +709,22 @@
path = StyleGuide;
sourceTree = "<group>";
};
DD06F62F24C054BC0003FA15 /* Protocol */ = {
isa = PBXGroup;
children = (
DD06F63024C054D00003FA15 /* Reusable.swift */,
);
path = Protocol;
sourceTree = "<group>";
};
DD06F63A24C0A7000003FA15 /* Common */ = {
isa = PBXGroup;
children = (
DD06F63B24C0A7220003FA15 /* Section.swift */,
);
path = Common;
sourceTree = "<group>";
};
DDDB55012468ACAC008EA75A /* Resources */ = {
isa = PBXGroup;
children = (
Expand Down Expand Up @@ -926,7 +963,7 @@
files = (
C016A4DD248AC1C30012B185 /* CommentFooter.swift in Sources */,
2F426BA92473682E007A4796 /* HTML.swift in Sources */,
DD7B700E2487618B00B9988B /* FeedMenuCell.swift in Sources */,
DD7B700E2487618B00B9988B /* MenuCell.swift in Sources */,
2F72CE502468785200750785 /* JSON.swift in Sources */,
2F04219E246CE99C005FB1D0 /* Success.swift in Sources */,
2F426BA6247365FB007A4796 /* OpenSourceCreditsViewController.swift in Sources */,
Expand All @@ -935,17 +972,19 @@
2F72CE5B2468790200750785 /* APIError.swift in Sources */,
2F72CE4E2468785200750785 /* HTTPRequestError.swift in Sources */,
DC807E65246FB37000046D67 /* BottomModal.swift in Sources */,
DD5F00FD24C0421C0003A80C /* FeedCell.swift in Sources */,
DC807E73247027D800046D67 /* Fonts.swift in Sources */,
2F04218A246CCBFA005FB1D0 /* FeedViewController.swift in Sources */,
2F04210D246A1021005FB1D0 /* Avatar.swift in Sources */,
DDBF147D24815591004E4771 /* PostCreationSuccessAlert.swift in Sources */,
2F72CE522468785200750785 /* HTTPMethod.swift in Sources */,
DD5F00FB24C041E20003A80C /* OfferFeedScreen.swift in Sources */,
2F0B5168246E0DF200BE42BC /* CreatePostBody.swift in Sources */,
DC807E70247027CF00046D67 /* SessionManagerError.swift in Sources */,
2F042199246CE4B3005FB1D0 /* LogInViewController.swift in Sources */,
C016A4E12493EFAA0012B185 /* CommentAddBox.swift in Sources */,
2FF5627C2475F0D000194144 /* LocationServices.swift in Sources */,
DD7B700C24875D8800B9988B /* FeedMenuBar.swift in Sources */,
DD7B700C24875D8800B9988B /* MenuBar.swift in Sources */,
2F04210E246A1021005FB1D0 /* FeedPost.swift in Sources */,
2FB341EC2468F841007E397F /* UIColor+FightPandemics.swift in Sources */,
2F72CE562468789000750785 /* User.swift in Sources */,
Expand All @@ -968,27 +1007,29 @@
DC807E6A247027C700046D67 /* JSONFileReader.swift in Sources */,
2F04210F246A1021005FB1D0 /* AvatarView.swift in Sources */,
C018DD892479C41D00EEB3FC /* FeedCatTag.swift in Sources */,
DD7B70102487A05F00B9988B /* FeedPostDataSource.swift in Sources */,
2F0C3C652471DB2D0002B384 /* RootNavigationController.swift in Sources */,
2FB342042468FFCC007E397F /* Navigator.swift in Sources */,
2F0C3C44246F51BB0002B384 /* PostReactionButton.swift in Sources */,
DD5F00F724C040120003A80C /* BaseCell.swift in Sources */,
2FF5627E2476035C00194144 /* LocationServicesObserver.swift in Sources */,
2F042190246CCD4A005FB1D0 /* ProfileViewController.swift in Sources */,
DD06F63524C056330003FA15 /* UICollectionView+FightPandemics.swift in Sources */,
2F426BA024735B89007A4796 /* OpenSourceLicense.swift in Sources */,
2F0421A4246D04B9005FB1D0 /* AutoLogInFakeLaunchScreen.swift in Sources */,
C0E5EDFB2470AA4E00F42319 /* Duration.swift in Sources */,
2F72CE4D2468785200750785 /* HTTPClientError.swift in Sources */,
2F72CE532468785200750785 /* HTTPClient.swift in Sources */,
C018DD84247722FB00EEB3FC /* ClearFilterBtn.swift in Sources */,
2F0B515C246E009400BE42BC /* CreatePostViewController.swift in Sources */,
DD06F63C24C0A7220003FA15 /* Section.swift in Sources */,
2F0B516B246E15B400BE42BC /* IndividualOrg.swift in Sources */,
DD5F00F924C040E70003A80C /* RequestFeedScreen.swift in Sources */,
A681817C2482050A00E7EA43 /* PillButton.swift in Sources */,
2F0C3C40246ECA5C0002B384 /* Constraints+FightPandemics.swift in Sources */,
2F042110246A1021005FB1D0 /* PostFooter.swift in Sources */,
DD7B70122487B12B00B9988B /* FeedViewCell.swift in Sources */,
DD7B70122487B12B00B9988B /* AllFeedScreen.swift in Sources */,
C018DD822477113800EEB3FC /* LocationCellSearch.swift in Sources */,
DC807E64246FB37000046D67 /* BottomModalTransitionDelegate.swift in Sources */,
2F0420F9246A0E7E005FB1D0 /* FeedPrototypeViewController.swift in Sources */,
2F72CE4F2468785200750785 /* HTTPRequest.swift in Sources */,
2F04213F246A2CCD005FB1D0 /* String+FightPandemics.swift in Sources */,
2F426BBC24749B97007A4796 /* InboxViewController.swift in Sources */,
Expand All @@ -1000,10 +1041,13 @@
DC807E5B246FB02300046D67 /* Entity.swift in Sources */,
976A98CB24782B8600604FFA /* GeneratedImagesList.swift in Sources */,
2F426BAF24736E3D007A4796 /* OpenSourceTableViewCell.swift in Sources */,
DD06F63924C071600003FA15 /* Post.swift in Sources */,
2F426B3C2472C2A3007A4796 /* PostVisibilitySelectionView.swift in Sources */,
DD06F63324C055940003FA15 /* CollectionReusableView+FightPandemics.swift in Sources */,
976A98CD24782BC500604FFA /* GeneratedStoryboardsList.swift in Sources */,
2F72CE5D2468793300750785 /* MockAPI.swift in Sources */,
2F042194246CD022005FB1D0 /* SearchViewController.swift in Sources */,
DD06F63124C054D00003FA15 /* Reusable.swift in Sources */,
2F0C3C42246ECA660002B384 /* ConstrainableView.swift in Sources */,
2F0B5166246E0DF200BE42BC /* CreatePostFooter.swift in Sources */,
);
Expand Down
18 changes: 9 additions & 9 deletions FightPandemics/Features/Feed/FeedViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ final class FeedViewController: UIViewController {
super.viewDidLoad()
setupViews()
}
private let feedMenuBar = FeedMenuBar()

private let feedMenuBar = MenuBar()

private lazy var collectionView: UICollectionView = {
let layout = UICollectionViewFlowLayout()
Expand Down Expand Up @@ -71,7 +71,9 @@ private extension FeedViewController {
.width(to: \.widthAnchor)
.height(57)

collectionView.register(FeedViewCell.self, forCellWithReuseIdentifier: FeedViewCell.reuseIdentifier)
collectionView.register(cellType: AllFeedScreen.self)
collectionView.register(cellType: OfferFeedScreen.self)
collectionView.register(cellType: RequestFeedScreen.self)
collectionView.makeSubview(of: view)
.top(to: \.bottomAnchor, of: feedMenuBar, relation: .equal, constant: 8, priority: .required)
.leading(to: \.leadingAnchor)
Expand All @@ -86,16 +88,14 @@ extension FeedViewController: UICollectionViewDataSource {
}

func collectionView(_ collectionView: UICollectionView, cellForItemAt indexPath: IndexPath) -> UICollectionViewCell {
guard let cell = collectionView.dequeueReusableCell(withReuseIdentifier: FeedViewCell.reuseIdentifier, for: indexPath) as? FeedViewCell else {
return UICollectionViewCell()
}
let cell: UICollectionViewCell

if indexPath.row == 0 {
cell.backgroundColor = .orange
cell = collectionView.dequeueReusableCell(withReuseIdentifier: AllFeedScreen.reuseIdentifier, for: indexPath)
} else if indexPath.row == 1 {
cell.backgroundColor = .green
cell = collectionView.dequeueReusableCell(withReuseIdentifier: OfferFeedScreen.reuseIdentifier, for: indexPath)
} else {
cell.backgroundColor = .purple
cell = collectionView.dequeueReusableCell(withReuseIdentifier: RequestFeedScreen.reuseIdentifier, for: indexPath)
}
return cell
}
Expand Down

0 comments on commit d362bdb

Please sign in to comment.