I don't know what is going on but this will happened a lot of time to me. I used UIStackView
for arranging the view and animation but when I hide the control in UIStackView
there will be some sort of weird animation is there. Here I attached video and code.
UIView.animate(withDuration: 0.5, animations: {
self.viewCollectionSpecies.isHidden = true
})