Skip to content

Commit

Permalink
Add back gesture [#65]
Browse files Browse the repository at this point in the history
  • Loading branch information
Sunghee2 committed Apr 4, 2020
1 parent f1bb846 commit 2265ab8
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 0 deletions.
Binary file added .Podfile.swp
Binary file not shown.
1 change: 1 addition & 0 deletions MindGarden/Resources/Storyboards/Auth.storyboard
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@
<constraint firstItem="Eeo-vs-Qkh" firstAttribute="trailing" secondItem="f97-gM-uCP" secondAttribute="trailing" constant="162" id="Sdn-sw-flB"/>
<constraint firstItem="f97-gM-uCP" firstAttribute="leading" secondItem="Eeo-vs-Qkh" secondAttribute="leading" constant="161" id="XAz-ko-zYd"/>
<constraint firstItem="MGH-0h-ZBE" firstAttribute="leading" secondItem="Eeo-vs-Qkh" secondAttribute="leading" constant="21" id="Xa2-hx-okX"/>
<constraint firstItem="0IH-rl-sDu" firstAttribute="width" secondItem="CNg-xW-Bik" secondAttribute="width" id="bee-XP-GHq"/>
<constraint firstItem="MGH-0h-ZBE" firstAttribute="centerX" secondItem="Eeo-vs-Qkh" secondAttribute="centerX" id="bhx-mj-jmt"/>
<constraint firstItem="Eeo-vs-Qkh" firstAttribute="trailing" secondItem="EWV-rU-jIe" secondAttribute="trailing" constant="37" id="eA6-ZG-hwV"/>
<constraint firstItem="f97-gM-uCP" firstAttribute="top" secondItem="EWV-rU-jIe" secondAttribute="bottom" constant="7" id="eba-xC-hjk"/>
Expand Down
3 changes: 3 additions & 0 deletions MindGarden/Sources/ViewControllers/Diary/DiaryListVC.swift
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,9 @@ class DiaryListVC: UIViewController {
dateBtn.setTitleColor(.black, for: .normal)
dateBtn.addTarget(self, action: #selector(dateBtnAction), for: .touchUpInside)
self.navigationItem.titleView = dateBtn

navigationController?.interactivePopGestureRecognizer?.isEnabled = true
navigationController?.interactivePopGestureRecognizer?.delegate = nil
}

@objc func dateBtnAction() {
Expand Down
2 changes: 2 additions & 0 deletions MindGarden/Sources/ViewControllers/Main/MainGridVC.swift
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@ class MainGridVC: UIViewController {
super.viewDidLoad()

self.navigationController?.interactivePopGestureRecognizer?.delegate = self
navigationController?.interactivePopGestureRecognizer?.isEnabled = true
navigationController?.interactivePopGestureRecognizer?.delegate = nil

getGardenData()
setWaterview()
Expand Down
2 changes: 2 additions & 0 deletions MindGarden/Sources/ViewControllers/Settings/SettingsVC.swift
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@ class SettingsVC: UIViewController {
self.navigationController?.navigationBar.titleTextAttributes = [NSAttributedString.Key.foregroundColor: UIColor.darkGray]
navigationController?.isNavigationBarHidden = false
self.navigationController?.interactivePopGestureRecognizer?.delegate = self
navigationController?.interactivePopGestureRecognizer?.isEnabled = true
navigationController?.interactivePopGestureRecognizer?.delegate = nil
}

func registerTVC() {
Expand Down

0 comments on commit 2265ab8

Please sign in to comment.