Skip to content

Commit

Permalink
Merge pull request TeamNADA#435 from TeamNADA/feature/TeamNADA#429
Browse files Browse the repository at this point in the history
fix: 명함 앞면 선택사항 없을 시 아이콘 없애기 (TeamNADA#429)
  • Loading branch information
hyun99999 authored Apr 15, 2023
2 parents 045999c + a90a67d commit 2d6b9fc
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions NADA-iOS-forRelease/Sources/Cells/CardCell/FrontCardCell.swift
Original file line number Diff line number Diff line change
Expand Up @@ -140,19 +140,20 @@ extension FrontCardCell {
mbtiLabel.text = cardData.mbti
instagramIDLabel.text = cardData.instagram
phoneNumberLabel.text = cardData.phoneNumber

if let urls = cardData.urls {
linkURLLabel.text = urls[0]
if urls[0].isEmpty {
linkURLStackView.isHidden = true
} else {
linkURLLabel.text = urls[0]
}
}

if cardData.instagram == nil {
if cardData.instagram?.isEmpty ?? false {
instagramStackView.isHidden = true
}
if cardData.phoneNumber == nil {
if cardData.phoneNumber?.isEmpty ?? false {
phoneNumberStackView.isHidden = true
}
if cardData.urls == nil {
linkURLStackView.isHidden = true
}

shareButton.isHidden = !isShareable
}
Expand Down

0 comments on commit 2d6b9fc

Please sign in to comment.