     println("right")
     if let frontCard = self.frontCard {
       frontCard.swipeView.removeFromSuperview()
+      switchCards()
     }
   }
 }

    println("left")
    if let frontCard = self.frontCard {
      frontCard.swipeView.removeFromSuperview()
    }
  }
  

    }
    return nil
  }
  
  private func switchCards() {
    if let card = backCard {
      frontCard = card
      UIView.animateWithDuration(0.2, animations: {
        self.frontCard!.swipeView.frame = self.createCardFrame(self.frontCardTopMargin)
      })
    }
    
    if let card = self.popCard() {
      self.backCard = card
      self.backCard!.swipeView.frame = self.createCardFrame(self.backCardTopMargin)
      self.cardStackView.insertSubview(self.backCard!.swipeView, belowSubview: self.frontCard!.swipeView)
    }
  }
}

//MARK: - SwipeViewDelegate
