title: How would I do this iOS animation on OSX?
body: <p>I have a very simple animation in iOS that fades a view, resizes a container to fit another view, then fades that other view back in. It's quite easy to do and very straightforward.</p>
  
  <p>I've been trying to do something pretty much exactly like this on OSX, but I haven't been able to figure out how to do it. The animation stuff on OSX feels so clunky and difficult compared to iOS.</p>
  
  <p>Any help would be much appreciated!!</p>
  
  <p>Thanks! :)</p>
  
  <pre><code>// Fade out viewOne, resize frame to fit viewTwo, fade in viewTwo
  [UIView animateWithDuration: 0.15
          animations: ^{
              [viewOne setAlpha:0.0];
          }
          completion: ^(BOOL finished) {
              [UIView animateWithDuration: 0.2
                      animations: ^{
                          [self setFrame: [viewTwo frame]];
                      }
                      completion: ^(BOOL finished) {
                          [viewTwo setAlpha: 0.0];
                          [self addSubview: viewTwo];
                          [UIView animateWithDuration: 0.15
                                  animations: ^{
                                      [viewTwo setAlpha:1.0];
                                  }];
                      }];
           }];
  </code></pre>