Skip to content

Commit

Permalink
[Feat] #65 - BackGesture 이슈 해결
Browse files Browse the repository at this point in the history
  • Loading branch information
Heyjooo committed Jan 14, 2024
1 parent e656f4c commit 538e806
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import UIKit

import SnapKit

final class MyPageAccountInfoViewController: UIViewController {
final class MyPageAccountInfoViewController: UIViewController, UIGestureRecognizerDelegate {

// MARK: - Properties

Expand Down Expand Up @@ -85,6 +85,7 @@ final class MyPageAccountInfoViewController: UIViewController {

let backButton = UIBarButtonItem.backButton(target: self, action: #selector(backButtonTapped))
self.navigationItem.leftBarButtonItem = backButton
self.navigationController?.interactivePopGestureRecognizer?.delegate = self
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import UIKit

import SnapKit

final class MyPageEditProfileViewController: UIViewController {
final class MyPageEditProfileViewController: UIViewController, UIGestureRecognizerDelegate {

// MARK: - Properties

Expand All @@ -34,6 +34,12 @@ final class MyPageEditProfileViewController: UIViewController {
setLayout()
setAddTarget()
}

override func viewWillAppear(_ animated: Bool) {
super.viewWillAppear(animated)

self.navigationController?.interactivePopGestureRecognizer?.delegate = self
}
}

// MARK: - Extensions
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

import UIKit

final class PostViewController: UIViewController {
final class PostViewController: UIViewController, UIGestureRecognizerDelegate {

// MARK: - Properties
var tabBarHeight: CGFloat = 0
Expand Down Expand Up @@ -65,6 +65,7 @@ final class PostViewController: UIViewController {

let backButton = UIBarButtonItem.backButton(target: self, action: #selector(backButtonPressed))
self.navigationItem.leftBarButtonItem = backButton
self.navigationController?.interactivePopGestureRecognizer?.delegate = self
}
}

Expand Down

0 comments on commit 538e806

Please sign in to comment.