         let keyRect:CGRect = keyboardFrameValue.cgRectValue
         let yOrigin = keyRect.origin.y
         let screenHeight:CGFloat = UIScreen.main.bounds.size.height
-        let currentOffset:CGPoint = conversation.collectionView.contentOffset
         let keyboardHeight:CGFloat
         
         if yOrigin < screenHeight

            object:nil)
    }
    
    //MARK: imagePicker delegate
    
    func imagePickerController(_ picker:UIImagePickerController, didFinishPickingMediaWithInfo info:[String:Any])

            keyboardHeight = 0
        }
        
        let newInputBottom:CGFloat = -keyboardHeight
        animateInput(bottom:newInputBottom)
    }
    
    //MARK: private
    
    private func animateInput(bottom:CGFloat)
    {
        let currentOffset:CGPoint = conversation.collectionView.contentOffset
        let newCollectionOffsetY:CGFloat = currentOffset.y - bottom
        layoutInputBottom.constant = bottom
        conversation.collectionView.contentOffset = CGPoint(x:0, y:newCollectionOffsetY)
        
        UIView.animate(withDuration:kAnimationDuration)
        { [weak self] in
