title: Perform 2 CGAffineTransform in a UIView.Animate - Swift
body: <p>Hey so i want a button in my view to grow when the view loads with a little animation.</p>
  
  <p>When the view loads ect i set the start values</p>
  
  <pre><code>override func viewWillAppear(_ animated: Bool) {
  
      let shrink = CGAffineTransform(scaleX: 0, y: 0);
      let rotate = CGAffineTransform(rotationAngle: -90)
      checkButton.alpha = 0
      nextView.transform = shrink.concatenating(rotate)
  
  }
  </code></pre>
  
  <p>and then in view did appear I perform the animations</p>
  
  <pre><code> override func viewDidAppear(_ animated: Bool) {
      UIView.animate(withDuration: 0.35, animations: {
          let grow = CGAffineTransform(scaleX: 1, y: 1);
          let rotate = CGAffineTransform(rotationAngle: 0)
          self.checkButton.alpha = 1
          self.nextView.transform = grow.concatenating(rotate)
      })
  }
  </code></pre>
  
  <p>But only the grow animation works?
  How do i get it so it grows from scale 0 to scale 1 and rotates from 90 degrees to 0 degrees?</p>
  
  <p>Cheers </p>