Code for motioncast on UIView Animations