From 61b8f327d83ba06efe42adb2e0227fcaa7f913ed Mon Sep 17 00:00:00 2001 From: heejoo Date: Mon, 4 Mar 2024 03:08:39 +0900 Subject: [PATCH] =?UTF-8?q?Feat=20#354=20-=20=ED=91=B8=EC=8B=9C=EC=95=8C?= =?UTF-8?q?=EB=A6=BC=20=EB=B0=B1=EA=B7=B8=EB=9D=BC=EC=9A=B4=EB=93=9C=20?= =?UTF-8?q?=ED=83=AD=20=EB=A1=9C=EC=A7=81=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Around/ViewController/AroundViewController.swift | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/YELLO-iOS/YELLO-iOS/Presentation/Around/ViewController/AroundViewController.swift b/YELLO-iOS/YELLO-iOS/Presentation/Around/ViewController/AroundViewController.swift index 61e28dae..81df8a7f 100644 --- a/YELLO-iOS/YELLO-iOS/Presentation/Around/ViewController/AroundViewController.swift +++ b/YELLO-iOS/YELLO-iOS/Presentation/Around/ViewController/AroundViewController.swift @@ -23,7 +23,6 @@ final class AroundViewController: UIViewController { override func viewDidLoad() { super.viewDidLoad() setUI() - NotificationCenter.default.addObserver(self, selector: #selector(changeMode(_:)), name: NSNotification.Name("changeMode"), object: nil) } override func viewWillAppear(_ animated: Bool) { @@ -32,6 +31,13 @@ final class AroundViewController: UIViewController { aroundView.scrollCount = 0 self.tabBarController?.tabBar.isHidden = false self.navigationController?.navigationBar.isHidden = true + NotificationCenter.default.addObserver(self, selector: #selector(changeMode(_:)), name: NSNotification.Name("changeMode"), object: nil) + self.tabBarController?.tabBar.items?[2].imageInsets = UIEdgeInsets(top: 0, left: 0, bottom: 0, right: 0) + } + + override func viewWillDisappear(_ animated: Bool) { + super.viewWillDisappear(animated) + NotificationCenter.default.removeObserver(self, name: NSNotification.Name("changeMode"), object: nil) } }