 
 // MARK: UITextViewDelegate
 extension OmnibarScreen: UITextViewDelegate {
-
     public func textViewShouldBeginEditing(textView : UITextView) -> Bool {
         return true
     }


        updatePostState()

        let autoComplete = AutoComplete()
        if let match = autoComplete.check(newText, location: range.location) {
            // if needed show autocompleteviewcontroller
            // if already shown, load new results into already showing vc
            autoCompleteVC.load(match) { count in
                println("count = \(count)")

//                self.autoCompleteContainer.frame.size.height = 150
//                self.textView.inputAccessoryView = self.autoCompleteContainer
//                self.autoCompleteVC.view.frame = self.autoCompleteContainer.frame
            }
        }
        return true
    }
}

extension OmnibarScreen: AutoCompleteDelegate {
    public func resultSelected(result: AutoCompleteResult) {


    override public init(frame: CGRect) {
        self.autoCompleteContainer = UIView(frame: CGRect(x: 0, y: 0, width: frame.size.width, height: 0))
        self.autoCompleteThrottle = debounce(0.4)
        super.init(frame: frame)
        self.backgroundColor = UIColor.whiteColor()

