title: Slide up animation in Swift
body: <p>How can I animate a stack view to slide up starting from <code>x=0 up to y=500</code>, I have the following method in the <code>viewDidLoad()</code> which does a growing effect.</p>
  
  <pre><code>StackView.transform = CGAffineTransformMakeScale(0.0, 0.0)
  </code></pre>
  
  <p>And then I added a growing effect in the <code>viewDidAppear()</code> method </p>
  
  <pre><code>UIView.animateWithDuration(0.4, delay: 0.0, options: [], animations: {
  self.StackView.transform = CGAffineTransformIdentity
  }, completion: nil)
  </code></pre>
  
  <p>After the viewDidLoad method executes, the stack view is minimized. When the viewDidLoad method completes, the viewDidAppear method is invoked, and the animation begins and the stack view begins to grow. The animation stops when the stack view reaches it's original size. </p>
  
  <p>Although is a nice effect that's not what I want to accomplish, I want the animation to slide up from <code>x = 0 and stops at y = 500</code> I tried to add the following code in the viewDidLoad to accomplish this effect, but I still get the same growing effect. Any suggestions on how to accomplish this? </p>
  
  <pre><code>StackView.transform = CGAffineTransformMakeTranslation(0, 500)
  </code></pre>