CvvInputView
@IBDesignable
public class CvvInputView : StandardInputView, UITextFieldDelegate
Cvv Input View containing a label and an input field. Handles the formatting of the text field.
-
Text field delegate
Declaration
Swift
public weak var delegate: UITextFieldDelegate?
-
Undocumented
Declaration
Swift
public weak var onChangeDelegate: CvvInputViewDelegate?
-
Initializes and returns a newly allocated view object with the specified frame rectangle.
Declaration
Swift
public override init(frame: CGRect)
-
Returns an object initialized from data in a given unarchiver.
Declaration
Swift
public required init?(coder aDecoder: NSCoder)
-
Asks the delegate if the specified text should be changed.
Declaration
Swift
public func textField(_ textField: UITextField, shouldChangeCharactersIn range: NSRange, replacementString string: String) -> Bool
-
Tells the delegate that editing stopped for the specified text field.
Declaration
Swift
public func textFieldDidEndEditing(_ textField: UITextField)
-
Called when the text changed.
Declaration
Swift
@objc public func textFieldDidChange(textField: UITextField)