diff --git a/Instagram-iOS/Instagram-iOS/Screens/DMList/Cell/DMCollectionViewCell.swift b/Instagram-iOS/Instagram-iOS/Screens/DMList/Cell/DMCollectionViewCell.swift index 0eea0ab..24be607 100644 --- a/Instagram-iOS/Instagram-iOS/Screens/DMList/Cell/DMCollectionViewCell.swift +++ b/Instagram-iOS/Instagram-iOS/Screens/DMList/Cell/DMCollectionViewCell.swift @@ -14,12 +14,7 @@ final class DMCollectionViewCell: BaseCollectionViewCell { // MARK: - Property // MARK: - UI Property -// let userProfileView = UserProfileView(usedView: .dm, storyStatus: .none) - let userProfileView: UIImageView = { - let image = UIImageView() - image.backgroundColor = .blue - return image - }() + let userProfileView = UserProfileView(usedView: .dm, storyStatus: .none) let usernameLabel: UILabel = { let label = UILabel() diff --git a/Instagram-iOS/Instagram-iOS/Screens/DMList/Cell/DMTableViewHeader.swift b/Instagram-iOS/Instagram-iOS/Screens/DMList/Cell/DMTableViewHeader.swift index d2df4a9..8bac9b2 100644 --- a/Instagram-iOS/Instagram-iOS/Screens/DMList/Cell/DMTableViewHeader.swift +++ b/Instagram-iOS/Instagram-iOS/Screens/DMList/Cell/DMTableViewHeader.swift @@ -77,7 +77,7 @@ final class DMTableViewHeader: UIView { addSubview(titleLabel) titleLabel.snp.makeConstraints { $0.top.equalTo(searchTextField.snp.bottom).offset(18) - $0.leading.equalToSuperview().offset(20) + $0.leading.equalToSuperview().offset(16) } addSubview(storyCollectionView) @@ -109,14 +109,6 @@ extension DMTableViewHeader: UICollectionViewDelegateFlowLayout { func collectionView(_ collectionView: UICollectionView, layout collectionViewLayout: UICollectionViewLayout, minimumInteritemSpacingForSectionAt section: Int) -> CGFloat { return 4 } - - func collectionView(_ collectionView: UICollectionView, layout collectionViewLayout: UICollectionViewLayout, minimumLineSpacingForSectionAt section: Int) -> CGFloat { - return 0 - } - -// func collectionView(_ collectionView: UICollectionView, layout collectionViewLayout: UICollectionViewLayout, insetForSectionAt section: Int) -> UIEdgeInsets { -// return UIEdgeInsets(top: 0, left: 0, bottom: 0, right: 0) -// } } //MARK: - UICollectionViewDataSource diff --git a/Instagram-iOS/Instagram-iOS/Screens/DMList/Cell/DMTableviewCell.swift b/Instagram-iOS/Instagram-iOS/Screens/DMList/Cell/DMTableviewCell.swift index 7dd692d..b46d8da 100644 --- a/Instagram-iOS/Instagram-iOS/Screens/DMList/Cell/DMTableviewCell.swift +++ b/Instagram-iOS/Instagram-iOS/Screens/DMList/Cell/DMTableviewCell.swift @@ -12,14 +12,10 @@ import SnapKit final class DMTableviewCell: BaseTableViewCell { // MARK: - Property + // MARK: - UI Property -// let userProfileView = UserProfileView(usedView: .dm, storyStatus: .none) - private let userProfileView: UIImageView = { - let image = UIImageView() - image.backgroundColor = .blue - return image - }() + let userProfileView = UserProfileView(usedView: .dm, storyStatus: .none) private let usernameLabel: UILabel = { let label = UILabel() @@ -39,7 +35,8 @@ final class DMTableviewCell: BaseTableViewCell { private lazy var starButton: UIButton = { let button = UIButton() - button.backgroundColor = .yellow + button.setImage(UIImage(systemName: "star.fill"), for: .normal) + button.tintColor = .systemYellow return button }() @@ -70,6 +67,7 @@ final class DMTableviewCell: BaseTableViewCell { starButton.snp.makeConstraints { $0.centerY.equalToSuperview() $0.trailing.equalToSuperview().offset(-9) + $0.width.height.equalTo(29) } }