Skip to content

Commit

Permalink
[Chore] CDS-Mobile1#27 - userProfileView 적용
Browse files Browse the repository at this point in the history
  • Loading branch information
joonBaek12 committed Jun 3, 2023
1 parent 1974260 commit 198d0af
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 22 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand All @@ -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
}()

Expand Down Expand Up @@ -70,6 +67,7 @@ final class DMTableviewCell: BaseTableViewCell {
starButton.snp.makeConstraints {
$0.centerY.equalToSuperview()
$0.trailing.equalToSuperview().offset(-9)
$0.width.height.equalTo(29)
}
}

Expand Down

0 comments on commit 198d0af

Please sign in to comment.