 import MobileCoreServices
 import MapKit
 import Proposer
+import KeyboardMan
 
 struct MessageNotification {
     static let MessageStateChanged = "MessageStateChangedNotification"


    var conversationCollectionViewHasBeenMovedToBottomOnce = false

    // Keyboard 动画相关
    var conversationCollectionViewContentOffsetBeforeKeyboardWillShow = CGPointZero
    var conversationCollectionViewContentOffsetBeforeKeyboardWillHide = CGPointZero
    var isKeyboardVisible = false
    var keyboardHeight: CGFloat = 0

    var checkTypingStatusTimer: NSTimer?
    
    var typingResetDelay: Float = 0
    
    var keyboardShowTimes = 0 {
        willSet {
//            println("set keyboardShowTimes \(newValue)")
            
            if newValue == 0 {
                if !self.isKeyboardVisible {
                    self.isKeyboardVisible = true
                }
            }
        }
    }

    lazy var titleView: ConversationTitleView = {
        let titleView = ConversationTitleView(frame: CGRect(origin: CGPointZero, size: CGSize(width: 150, height: 44)))


                conversationCollectionView.contentInset.bottom = messageToolBarTop

                //conversationCollectionViewContentOffsetBeforeKeyboardWillShow = conversationCollectionView.contentOffset
            }
        }
    }
