title: Animation queue sliding a series of UILabels out of view using Facebook POP and Swift
body: <p>I want to 'queue' an animation sequence that would sequentially slide a series of labels out of view with a slight delay between each slide-out. Starting from the top one and ending in the last one. Currently I have the following function which I call on the tap of a button:</p>
  
  <pre><code>func slideLabelsOut(labelArguments: UILabel...) {
  
      var labelAnimation = POPDecayAnimation();
      labelAnimation.property = POPAnimatableProperty.propertyWithName(kPOPLayerPositionX) as POPAnimatableProperty;
  
      labelAnimation.velocity = -720;
  
      for label in labelArguments {
          var layer = label.layer;
          layer.pop_addAnimation(labelAnimation, forKey: "Slide");
      }
  
  }
  </code></pre>
  
  <p>So... I tried using usleep() in the for loop, however as I found out it blocks the main thread which is absolutely useless to me... So is there any built in solution for this kind of thing within Pop? Or should I maybe use some other framework? Also... if there's not a built in solution how should I approach queuing animations in the future (I recon I'll be doing that a lot)?</p>