From 1e9c5fb6fe8f35a84c93af1cb2ce2e1bcb9599b3 Mon Sep 17 00:00:00 2001 From: jeongkite Date: Thu, 1 Dec 2022 11:38:48 +0900 Subject: [PATCH] =?UTF-8?q?=F0=9F=98=BA[CHORE]=20=EA=B2=80=EC=83=89?= =?UTF-8?q?=EB=B7=B0=20=EB=8D=94=EB=AF=B8=EB=8D=B0=EC=9D=B4=ED=84=B0=20?= =?UTF-8?q?=ED=91=9C=EC=8B=9C=20(#25)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Search/ViewController/SearchViewController.swift | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/Oliveyoung-iOS/Oliveyoung-iOS/Source/Presentation/Search/ViewController/SearchViewController.swift b/Oliveyoung-iOS/Oliveyoung-iOS/Source/Presentation/Search/ViewController/SearchViewController.swift index f893601..a379fbd 100644 --- a/Oliveyoung-iOS/Oliveyoung-iOS/Source/Presentation/Search/ViewController/SearchViewController.swift +++ b/Oliveyoung-iOS/Oliveyoung-iOS/Source/Presentation/Search/ViewController/SearchViewController.swift @@ -17,8 +17,14 @@ final class SearchViewController: BaseViewController { // MARK: - Property private let searchProvider = MoyaProvider(plugins: [MoyaLoggingPlugin()]) private var recommendList: [Product] = [] - private var recentWordList: [String] = [] + private var recentWordList: [String] = Word.setRecentWordDummy() private var popularWordDummy = Word.popularWordDummy() + private var recommendDummyList: [RecommendModel] = [ + RecommendModel(Image: "beyond", Brand: "비욘드", Name: "엔젤 아쿠아 수분 진정 크림",Price: "20,800원",Percent: "16%"), + RecommendModel(Image: "hince", Brand: "힌스", Name: "무드 인핸서 마뜨",Price: "12,321원",Percent: "32%"), + RecommendModel(Image: "3ce", Brand: "3CE", Name: "치명립스틱",Price: "60,000원",Percent: "16%"), + + ] // MARK: - Component private lazy var searchView = SearchView() @@ -91,7 +97,7 @@ extension SearchViewController: UICollectionViewDataSource { case 1: return popularWordDummy.count default: - return recommendList.count + return recommendDummyList.count } } @@ -108,7 +114,7 @@ extension SearchViewController: UICollectionViewDataSource { return cell default: guard let cell = collectionView.dequeueReusableCell(withReuseIdentifier: ReccomendCollectionViewCell.identifier, for: indexPath) as? ReccomendCollectionViewCell else { return UICollectionViewCell() } - cell.configureUI(product: recommendList[indexPath.row]) + cell.dataBind(model: recommendDummyList[indexPath.row]) return cell } }