I have a image view inside a scroll view and I add a tap recognise to the image view and it work but when i scroll it will transform the image view and the tap recogniser is gone .
// Avatar -----------
let avatarScaleFactor = (min(offset_HeaderStop, offset)) / userImage.bounds.height / 1.4 // Slow down the animation
let avatarSizeVariation = ((userImage.bounds.height * (1.0 + avatarScaleFactor)) - userImage.bounds.height) / 2.0
avatarTransform = CATransform3DTranslate(avatarTransform, 0, avatarSizeVariation, 0)
avatarTransform = CATransform3DScale(avatarTransform, 1.0 - avatarScaleFactor, 1.0 - avatarScaleFactor, 0)