From 37e1f6aac6839f1356ade4e161734fab32a7934a Mon Sep 17 00:00:00 2001 From: jeongdung-eo Date: Sun, 28 Jan 2024 22:29:52 +0900 Subject: [PATCH] =?UTF-8?q?[Fix]=20#226=20-=20=EC=BD=94=EB=93=9C=20?= =?UTF-8?q?=EB=A6=AC=EB=B7=B0=20=EB=B0=98=EC=98=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Home/ViewControllers/HomeViewController.swift | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/iOS-NOTTODO/iOS-NOTTODO/Presentation/Home/ViewControllers/HomeViewController.swift b/iOS-NOTTODO/iOS-NOTTODO/Presentation/Home/ViewControllers/HomeViewController.swift index 1ca37df8..13df4837 100644 --- a/iOS-NOTTODO/iOS-NOTTODO/Presentation/Home/ViewControllers/HomeViewController.swift +++ b/iOS-NOTTODO/iOS-NOTTODO/Presentation/Home/ViewControllers/HomeViewController.swift @@ -23,7 +23,7 @@ final class HomeViewController: UIViewController { private var current: Date? private lazy var safeArea = self.view.safeAreaLayoutGuide - private var isSelected: Bool = false + private var didCloseButtonTap: Bool = false private var didDeprecatedButtonTap: Bool { return KeychainUtil.isDeprecatedBtnClicked() } // MARK: - UI Components @@ -39,7 +39,7 @@ final class HomeViewController: UIViewController { override func viewWillAppear(_ animated: Bool) { super.viewWillAppear(animated) - showPopup(isSelected: isSelected) + showPopup(isSelected: didCloseButtonTap) AmplitudeAnalyticsService.shared.send(event: AnalyticsEvent.Home.viewHome) dailyLoadData() @@ -361,7 +361,7 @@ extension HomeViewController { self.present(nextView, animated: true) nextView.tapCloseButton = { - self.isSelected = true + self.didCloseButtonTap = true AmplitudeAnalyticsService.shared.send(event: AnalyticsEvent.Login.clickAdModalClose(again: self.didDeprecatedButtonTap ? "yes": "no" )) } }