From 32346017445136b4f7c7a88f0aa4eca2df7632e4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EC=A0=95=EC=B1=84=EC=9D=80?= Date: Mon, 2 Oct 2023 00:00:26 +0900 Subject: [PATCH] =?UTF-8?q?Refactor=20[#242]=20=EC=B9=9C=EA=B5=AC=EC=B4=88?= =?UTF-8?q?=EB=8C=80=EB=B7=B0=20=EB=B6=88=ED=95=84=EC=9A=94=ED=95=9C=20?= =?UTF-8?q?=EC=BD=94=EB=93=9C=20=EC=82=AD=EC=A0=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Recommending/Main/View/InviteBannerView.swift | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/YELLO-iOS/YELLO-iOS/Presentation/Recommending/Main/View/InviteBannerView.swift b/YELLO-iOS/YELLO-iOS/Presentation/Recommending/Main/View/InviteBannerView.swift index bc8d4020..3bcfa175 100644 --- a/YELLO-iOS/YELLO-iOS/Presentation/Recommending/Main/View/InviteBannerView.swift +++ b/YELLO-iOS/YELLO-iOS/Presentation/Recommending/Main/View/InviteBannerView.swift @@ -26,7 +26,6 @@ final class InviteBannerView: BaseView { // MARK: - Function // MARK: Layout Helpers override func setStyle() { - invitingView = InvitingView() inviteImageView.do { $0.image = ImageLiterals.Recommending.imgBannerInvite @@ -88,17 +87,17 @@ final class InviteBannerView: BaseView { invitingView.removeFromSuperview() invitingView = InvitingView() - invitingView.profileUserYelloId() - invitingView.frame = viewController.view.bounds - invitingView.autoresizingMask = [.flexibleWidth, .flexibleHeight] + self.invitingView.profileUserYelloId() + self.invitingView.frame = viewController.view.bounds + self.invitingView.autoresizingMask = [.flexibleWidth, .flexibleHeight] if rootViewName == "kakao" { Amplitude.instance().logEvent("click_invite", withEventProperties: ["invite_view": "recommend_kakao_yesfriend"]) } else if rootViewName == "school" { Amplitude.instance().logEvent("click_invite", withEventProperties: ["invite_view": "recommend_school_yesfriend"]) } + invitingView.rootViewController = rootViewName viewController.view.addSubview(invitingView) - } }