Skip to content

Commit

Permalink
๐Ÿ˜บ[CHORE] ๊ฒ€์ƒ‰๋ทฐ ๋”๋ฏธ๋ฐ์ดํ„ฐ ํ‘œ์‹œ (#25)
Browse files Browse the repository at this point in the history
  • Loading branch information
jeongkite committed Dec 1, 2022
1 parent 85170df commit 1e9c5fb
Showing 1 changed file with 9 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,14 @@ final class SearchViewController: BaseViewController {
// MARK: - Property
private let searchProvider = MoyaProvider<SearchRouter>(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()
Expand Down Expand Up @@ -91,7 +97,7 @@ extension SearchViewController: UICollectionViewDataSource {
case 1:
return popularWordDummy.count
default:
return recommendList.count
return recommendDummyList.count
}
}

Expand All @@ -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
}
}
Expand Down

0 comments on commit 1e9c5fb

Please sign in to comment.