   func swipedLeft() {
     println("left")
     if let frontCard = frontCard {
-      frontCard.removeFromSuperview()
+      frontCard.swipeView.removeFromSuperview()
     }
   }
   
   func swipedRight() {
     println("right")
     if let frontCard = frontCard {
-      frontCard.removeFromSuperview()
+      frontCard.swipeView.removeFromSuperview()
     }
   }
 }

  private func createCardFrame(topMargin: CGFloat)->CGRect {
    return CGRect(x: 0, y: topMargin, width: cardStackView.frame.width, height: cardStackView.frame.height)
  }
}

//MARK: - SwipeViewDelegate

    // Do any additional setup after loading the view.
    cardStackView.backgroundColor = UIColor.clearColor()
    
    backCard = createCard(backCardTopMargin)
    cardStackView.addSubview(backCard!.swipeView)
    
    frontCard = createCard(frontCardTopMargin)
    cardStackView.addSubview(frontCard!.swipeView)
  }
  
  override func didReceiveMemoryWarning() {
