From 8e62ca484ac9fefa9fea8645360424e03f09315f Mon Sep 17 00:00:00 2001 From: hyun99999 Date: Mon, 24 Apr 2023 19:26:29 +0900 Subject: [PATCH] =?UTF-8?q?feat:=20=EB=AA=85=ED=95=A8=20=EB=AF=B8=EB=A6=AC?= =?UTF-8?q?=EB=B3=B4=EA=B8=B0=EC=97=90=EC=84=9C=20=EA=B8=B0=EB=B3=B8/?= =?UTF-8?q?=EB=8D=95=EC=A7=88/=EC=A7=81=EC=9E=A5=20=EB=AA=85=ED=95=A8=20?= =?UTF-8?q?=EC=95=9E=EB=A9=B4=20=EA=B5=AC=EC=84=B1=20(#450)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../CardCreationPreviewViewController.swift | 22 ++++++++----------- 1 file changed, 9 insertions(+), 13 deletions(-) diff --git a/NADA-iOS-forRelease/Sources/ViewControllers/CardCreation/VC/CardCreationPreviewViewController.swift b/NADA-iOS-forRelease/Sources/ViewControllers/CardCreation/VC/CardCreationPreviewViewController.swift index b63d873a..5fe7c8be 100644 --- a/NADA-iOS-forRelease/Sources/ViewControllers/CardCreation/VC/CardCreationPreviewViewController.swift +++ b/NADA-iOS-forRelease/Sources/ViewControllers/CardCreation/VC/CardCreationPreviewViewController.swift @@ -120,27 +120,23 @@ extension CardCreationPreviewViewController { frontCard.frame = CGRect(x: 0, y: 0, width: cardView.frame.width, height: cardView.frame.height) guard let frontCardDataModel = frontCardDataModel else { return } - frontCard.initCell(cardBackgroundImage, - frontCardDataModel.cardName, - frontCardDataModel.departmentName ?? "", - frontCardDataModel.userName, - frontCardDataModel.birth, - frontCardDataModel.mbti ?? "", - frontCardDataModel.instagram ?? "", - frontCardDataModel.phoneNumber ?? "", - frontCardDataModel.urls?[0] ?? "", - isShareable: isShareable) + frontCard.initCell(cardBackgroundImage, frontCardDataModel) cardView.addSubview(frontCard) case .company: - return + guard let frontCard = CompanyFrontCardCell.nib().instantiate(withOwner: self, options: nil).first as? CompanyFrontCardCell else { return } + frontCard.frame = CGRect(x: 0, y: 0, width: cardView.frame.width, height: cardView.frame.height) + + guard let frontCardDataModel = frontCardDataModel else { return } + frontCard.initCell(cardBackgroundImage, frontCardDataModel) + + cardView.addSubview(frontCard) case .fan: guard let frontCard = FanFrontCardCell.nib().instantiate(withOwner: self, options: nil).first as? FanFrontCardCell else { return } frontCard.frame = CGRect(x: 0, y: 0, width: cardView.frame.width, height: cardView.frame.height) guard let frontCardDataModel = frontCardDataModel else { return } - frontCard.initCell(cardBackgroundImage, - frontCardDataModel: frontCardDataModel) + frontCard.initCell(cardBackgroundImage, frontCardDataModel) cardView.addSubview(frontCard) }