|
|
@@ -55,12 +55,16 @@ class PostViewController: UIViewController, UIGestureRecognizerDelegate {
|
|
|
|
|
|
super.viewDidLoad()
|
|
|
self.loadPost(id: id)
|
|
|
+
|
|
|
+ // Set button action
|
|
|
+ barButton.addTarget(self, action: #selector(self.back), for: .touchUpInside)
|
|
|
}
|
|
|
|
|
|
//TODO implement all the logic for post loading here, including iboutlts
|
|
|
|
|
|
|
|
|
func back() {
|
|
|
+ print("POSTCONTROLLER:DEBUG: Back")
|
|
|
self.dismiss(animated: true, completion: nil)
|
|
|
}
|
|
|
|