Skip to content

Commit

Permalink
✅[CHORE] : #276 - 타인 마이페이지 라벨 추가 및 이미지 위치 조정
Browse files Browse the repository at this point in the history
  • Loading branch information
parkikbum committed Jul 19, 2022
1 parent 751449f commit 90ab928
Showing 1 changed file with 14 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,12 @@ class OtherMyPageVC: UIViewController {
$0.titleLabel?.textColor = UIColor.white
$0.contentHorizontalAlignment = .left
}
private let wordingLabel = UILabel().then {
$0.text = "작성된 드라이브 코스가 아직 없습니다"
$0.font = UIFont.notoSansRegularFont(ofSize: 14)
$0.textColor = UIColor.gray50
}

private let backButton = UIButton().then {
$0.setBackgroundImage(ImageLiterals.icBackWhite, for: .normal)
$0.addTarget(self, action: #selector(backButtonClicked(_:)), for: .touchUpInside)
Expand Down Expand Up @@ -326,15 +332,21 @@ class OtherMyPageVC: UIViewController {
}

func isNoData() {
collectionBackgroundView.addSubview(noDataImageView)
collectionBackgroundView.addSubviews([noDataImageView, wordingLabel])

noDataImageView.isHidden = true

noDataImageView.snp.makeConstraints{
$0.top.leading.trailing.equalToSuperview().offset(0)
$0.top.equalToSuperview().offset(61)
$0.leading.trailing.equalToSuperview().offset(0)
$0.width.equalTo(userWidth)
$0.height.equalTo(259)
}
wordingLabel.snp.makeConstraints {
$0.top.equalTo(noDataImageView.snp.bottom).offset(19)
$0.centerX.equalToSuperview()
$0.width.equalTo(225)
}

if writenPostDriveData.isEmpty == true {
noDataImageView.isHidden = false
Expand Down

0 comments on commit 90ab928

Please sign in to comment.