title: Combine translation, alpha and scale animations in swift3
body: <p>I'm totally newbies with iOS Swift developement and i try to combine three parameters in a single animations but i don't succeed.</p>
  
  <p>I think the solution is here -<a href="https://developer.apple.com/library/content/documentation/Cocoa/Conceptual/CoreAnimation_guide/CreatingBasicAnimations/CreatingBasicAnimations.html#//apple_ref/doc/uid/TP40004514-CH3-SW8" rel="noreferrer">Apple Dev Core Animation Programming Guide</a> by grouping the animations but being a beginner and after a lot of Internet research i can't find what i'm looking for.</p>
  
  <p>What do you think of my code and what is for you the best solution to combine performance and stability.</p>
  
  <p>I want to point out that the purpose of this animation is to create an animated Splashscreen. There are other elements (UIImage) that will be to animates.</p>
  
  <p>Here is my code:</p>
  
  <pre><code>    override func viewWillAppear(_ animated: Bool) {
      super.viewWillAppear(animated)
  
      logoImg.alpha = 0
      logoImg.transform = CGAffineTransform(translationX: 0, y: -200)
      logoImg.transform = CGAffineTransform(scaleX: 0, y: 0)
  
  }
  
  override func viewDidAppear(_ animated: Bool) {
      super.viewDidAppear(animated)
  
      UIView.animate(withDuration: 1.0, delay: 1.0, usingSpringWithDamping: 0.6, initialSpringVelocity: 10, options: [.curveEaseOut], animations: {
  
          self.logoImg.transform = CGAffineTransform(translationX: 0, y: 0)
          self.logoImg.transform = CGAffineTransform(scaleX: 1, y: 1)
          self.logoImg.alpha = 1
  
      }, completion: nil)
  }
  </code></pre>