A image view performs image switching with squeezing and popping animations.
DDSwitchImageView will switch image and highlightImage with switchImage method
-
Set image and highlightImage property before switching. If highlight image is not available, the highlight image will be replaced by the image from image property
-
switchImage method will run scaling animation to switch image and highlight image