/// https://stackoverflow.com/questions/40365971/how-to-add-tap-gesture-to-uicollectionview-while-maintaining-cell-selection
let tapGesture = UITapGestureRecognizer.init(target: self, action: #selector(tapAction))
tapGesture.cancelsTouchesInView = false
self.messagesCollectionView.isUserInteractionEnabled = true
self.messagesCollectionView.addGestureRecognizer(tapGesture)