Swift 3
CATransaction.begin()CATransaction.setCompletionBlock { //Actions to be done after animation}//Animation CodeCATransaction.commit()