Skip to content

Commit

Permalink
🐛#296: 마이페이지 - MusicListCell AutoLayout constraints 충돌 처리
Browse files Browse the repository at this point in the history
- 원인: cell contentView 서브뷰 여백 설정으로 인해 contentView 높이를 44로 고정하려 함.
- 해결: lessThanEqualTo를 사용하여, 동적 크기가 허용시킴.
  • Loading branch information
thoonk committed Jul 23, 2024
1 parent 8090831 commit ab7cdd4
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -170,8 +170,9 @@ private extension MusicListCell {

contentView.addSubview(rootView)
rootView.snp.makeConstraints {
$0.top.bottom.equalToSuperview().inset(8)
$0.top.equalToSuperview().inset(8)
$0.leading.trailing.equalToSuperview().inset(24)
$0.bottom.lessThanOrEqualToSuperview().inset(8).priority(.high)
}

// MARK: - Container View
Expand Down

0 comments on commit ab7cdd4

Please sign in to comment.