Skip to content

Commit

Permalink
[#142] Back Swipe Gesture 함수 ViewController extension으로 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
meenyweeny committed Jul 29, 2022
1 parent 8260cef commit db8b32c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 4 additions & 0 deletions Deartoday/Deartoday/Global/Extension/UIViewController+.swift
Original file line number Diff line number Diff line change
Expand Up @@ -61,4 +61,8 @@ extension UIViewController {
self.present(viewControllerToPresent, animated: true, completion: nil)
}
}

func setBackSwipeGesture() {
navigationController?.interactivePopGestureRecognizer?.delegate = nil
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -79,10 +79,6 @@ final class MainViewController: UIViewController {
}
}

private func setBackSwipeGesture() {
navigationController?.interactivePopGestureRecognizer?.delegate = nil
}

private func setGesture() {
let timeTravelTapGesture = UITapGestureRecognizer(target: self, action: #selector(timeTravelComponentDidTap))
timeTravelView.addGestureRecognizer(timeTravelTapGesture)
Expand Down

0 comments on commit db8b32c

Please sign in to comment.