         case TGVisibility.Public:
             self.visibilityImageView.image = UIImage(named: "publicFilled")
         }
+        
+        // Check if post isLiked already
+        if post.isLiked {
+            dispatch_async(dispatch_get_main_queue(), { () -> Void in
+                self.likeButton.selected = true
+            })
+        } else {
+            dispatch_async(dispatch_get_main_queue(), { () -> Void in
+                self.likeButton.selected = false
+            })
+        }
     }
 }
 

    override func viewWillDisappear(animated: Bool) {
        NSNotificationCenter.defaultCenter().removeObserver(self, name: UIKeyboardWillShowNotification, object: nil)
        NSNotificationCenter.defaultCenter().removeObserver(self, name: UIKeyboardWillHideNotification, object: nil)
    }
    
    

    var postComments: [TGPostComment] = []
    
    var commentButtonPressedSwitch: Bool = false
    
    @IBOutlet weak var likeButton: UIButton!

    @IBOutlet weak var commentsTableView: UITableView!
    @IBOutlet weak var commentTextField: UITextField!
