         
         // TODO: Possibly filter spaces and newlines
         
-        self.isValid = countElements(textView.text) > 0
+        self.isValid = count(textView.text) > 0
     }
 }
-
-
-
-
-
-
-
-
-
-
-
-

        */
        
        let keyboardAnimationDetail = note.userInfo!
        let duration = keyboardAnimationDetail[UIKeyboardAnimationDurationUserInfoKey] as NSTimeInterval
        var keyboardFrame = (keyboardAnimationDetail[UIKeyboardFrameEndUserInfoKey] as NSValue).CGRectValue()
        if let window = self.view.window {
            keyboardFrame = window.convertRect(keyboardFrame, toView: self.view)
        }
        let animationCurve = keyboardAnimationDetail[UIKeyboardAnimationCurveUserInfoKey] as UInt
        
        self.tableView.scrollEnabled = false
        self.tableView.decelerationRate = UIScrollViewDecelerationRateFast

    
    private let sizingCell = LGChatMessageCell()
    private let tableView: UITableView = UITableView()
    private let chatInput = LGChatInput(frame: CGRectZero)
    private var bottomChatInputConstraint: NSLayoutConstraint!
    
    
