From 80041fb435ae3184463b51dee5470e4e58fb6bf5 Mon Sep 17 00:00:00 2001 From: hyun99999 Date: Sat, 15 Apr 2023 20:07:04 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20=EC=84=9C=EB=B2=84=EC=97=90=EC=84=9C=20?= =?UTF-8?q?=EB=B9=88=EB=AC=B8=EC=9E=90=EC=97=B4=EB=A1=9C=20=EB=84=98?= =?UTF-8?q?=EA=B2=A8=EC=A3=BC=EA=B8=B0=20=EB=95=8C=EB=AC=B8=EC=97=90=20?= =?UTF-8?q?=EC=88=98=EC=A0=95=20(#429)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Sources/Cells/CardCell/FrontCardCell.swift | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/NADA-iOS-forRelease/Sources/Cells/CardCell/FrontCardCell.swift b/NADA-iOS-forRelease/Sources/Cells/CardCell/FrontCardCell.swift index 10ecb568..b8020d73 100644 --- a/NADA-iOS-forRelease/Sources/Cells/CardCell/FrontCardCell.swift +++ b/NADA-iOS-forRelease/Sources/Cells/CardCell/FrontCardCell.swift @@ -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 }