     
     private func setupTargetsForEditinBegin() {
         // Show the full number text field, if editing began on it
-        numberInputTextField?.addTarget(self, action: Selector("moveNumberFieldRightAnimated"), forControlEvents: UIControlEvents.EditingDidBegin)
+        numberInputTextField?.addTarget(self, action: #selector(moveNumberFieldRightAnimated), forControlEvents: UIControlEvents.EditingDidBegin)
         
         // Show CVC image if the cvcTextField is selected, show card image otherwise
         let nonCVCTextFields: [UITextField?] = [numberInputTextField, monthTextField, yearTextField]
-        nonCVCTextFields.forEach({$0?.addTarget(self, action: Selector("showCardImage"), forControlEvents: .EditingDidBegin)})
-        cvcTextField?.addTarget(self, action: Selector("showCVCImage"), forControlEvents: .EditingDidBegin)
+        nonCVCTextFields.forEach({$0?.addTarget(self, action: #selector(showCardImage), forControlEvents: .EditingDidBegin)})
+        cvcTextField?.addTarget(self, action: #selector(showCVCImage), forControlEvents: .EditingDidBegin)
     }
     
     internal func buttonReceivedAction() {

            accessoryButton?.alpha = 0
            return
        }
        accessoryButton?.addTarget(self, action: Selector("buttonReceivedAction"), forControlEvents: .TouchUpInside)
        accessoryButton?.alpha = 1.0
        
        if let buttonImage = cardTextFieldDelegate?.cardTextFieldShouldShowAccessoryImage(self) {

        cardImageView?.backgroundColor = backgroundColor ?? UIColor.whiteColor()
        cardImageView?.layer.cornerRadius = 5.0
        
        let leftSwipeGestureRecognizer = UISwipeGestureRecognizer(target: self, action: #selector(moveNumberFieldLeftAnimated))
        leftSwipeGestureRecognizer.direction = .Left
        firstObjectInNib.addGestureRecognizer(leftSwipeGestureRecognizer)
        
        [firstObjectInNib, cardInfoView].forEach({
            let rightSwipeGestureRecognizer = UISwipeGestureRecognizer(target: self, action: #selector(moveNumberFieldRightAnimated))
            rightSwipeGestureRecognizer.direction = .Right
            $0?.addGestureRecognizer(rightSwipeGestureRecognizer)
        })
