Skip to content

Commit

Permalink
Feat #354 - 푸시알림 백그라운드 탭 로직 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
Heyjooo committed Mar 3, 2024
1 parent 1e6f443 commit 61b8f32
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand All @@ -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)
}

}
Expand Down

0 comments on commit 61b8f32

Please sign in to comment.