Skip to content

Commit

Permalink
chore: 뷰모델 더미 데이터 삭제
Browse files Browse the repository at this point in the history
  • Loading branch information
Kyxxn committed Nov 14, 2024
1 parent 8eafb21 commit b68088f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 33 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ extension HomeViewController: UICollectionViewDataSource {
_ collectionView: UICollectionView,
numberOfItemsInSection section: Int
) -> Int {
viewModel.dummyBook.count
0
}

public func collectionView(
Expand All @@ -149,15 +149,7 @@ extension HomeViewController: UICollectionViewDataSource {
withReuseIdentifier: BookCollectionViewCell.identifier,
for: indexPath
) as? BookCollectionViewCell else { return UICollectionViewCell() }

let book = viewModel.dummyBook[indexPath.row]
cell.configure(
title: book.title,
bookCoverImage: book.bookColor.image,
targetImage: .pinkBook,
isLike: book.isLike,
houseName: viewModel.houseName
)
// TODO: 데이터 넣기

return cell
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,29 +1,7 @@
import MHDomain

public final class HomeViewModel {
let dummyBook = [
BookCover(title: "집주인들", imageURL: "", bookColor: .pink, category: "친구", isLike: false),
BookCover(title: "엄마", imageURL: "", bookColor: .blue, category: "가족", isLike: true),
BookCover(title: "아빠", imageURL: "", bookColor: .green, category: "가족", isLike: true),
BookCover(title: "친구", imageURL: "", bookColor: .beige, category: "가족", isLike: false),
BookCover(title: "동생", imageURL: "", bookColor: .orange, category: "가족", isLike: true),
BookCover(title: "집주인들", imageURL: "", bookColor: .pink, category: "친구", isLike: false),
BookCover(title: "엄마", imageURL: "", bookColor: .blue, category: "가족", isLike: true),
BookCover(title: "아빠", imageURL: "", bookColor: .green, category: "가족", isLike: true),
BookCover(title: "친구", imageURL: "", bookColor: .beige, category: "가족", isLike: false),
BookCover(title: "동생", imageURL: "", bookColor: .orange, category: "가족", isLike: true),
BookCover(title: "집주인들", imageURL: "", bookColor: .pink, category: "친구", isLike: false),
BookCover(title: "엄마", imageURL: "", bookColor: .blue, category: "가족", isLike: true),
BookCover(title: "아빠", imageURL: "", bookColor: .green, category: "가족", isLike: true),
BookCover(title: "친구", imageURL: "", bookColor: .beige, category: "가족", isLike: false),
BookCover(title: "동생", imageURL: "", bookColor: .orange, category: "가족", isLike: true),
BookCover(title: "집주인들", imageURL: "", bookColor: .pink, category: "친구", isLike: false),
BookCover(title: "엄마", imageURL: "", bookColor: .blue, category: "가족", isLike: true),
BookCover(title: "아빠", imageURL: "", bookColor: .green, category: "가족", isLike: true),
BookCover(title: "친구", imageURL: "", bookColor: .beige, category: "가족", isLike: false),
BookCover(title: "동생", imageURL: "", bookColor: .orange, category: "가족", isLike: true)
]
let houseName: String
let houseName: String // TODO: 기록소 모델 만들기

Check warning on line 4 in MemorialHouse/MHPresentation/MHPresentation/Source/Home/HomeViewModel.swift

View workflow job for this annotation

GitHub Actions / SwiftLint

Todo Violation: TODOs should be resolved (기록소 모델 만들기) (todo)

Check warning on line 4 in MemorialHouse/MHPresentation/MHPresentation/Source/Home/HomeViewModel.swift

View workflow job for this annotation

GitHub Actions / SwiftLint

Todo Violation: TODOs should be resolved (기록소 모델 만들기) (todo)

public init(houseName: String) { // TODO: 기록소 모델 만들기

Check warning on line 6 in MemorialHouse/MHPresentation/MHPresentation/Source/Home/HomeViewModel.swift

View workflow job for this annotation

GitHub Actions / SwiftLint

Todo Violation: TODOs should be resolved (기록소 모델 만들기) (todo)

Check warning on line 6 in MemorialHouse/MHPresentation/MHPresentation/Source/Home/HomeViewModel.swift

View workflow job for this annotation

GitHub Actions / SwiftLint

Todo Violation: TODOs should be resolved (기록소 모델 만들기) (todo)
self.houseName = houseName
Expand Down

0 comments on commit b68088f

Please sign in to comment.