ForageCardCVV
@MainActor
public class ForageCardCVV : UIView, Identifiable, ForagePaymentSheetField, ForageElementDelegate
extension ForageCardCVV: UITextFieldDelegate
-
Declaration
Swift
@MainActor public var name: String -
Declaration
Swift
@MainActor public private(set) var isDirty: Bool { get } -
Declaration
Swift
@MainActor public private(set) var isTouched: Bool { get } -
Declaration
Swift
@MainActor public var invalidError: (any Error)? { get } -
Declaration
Swift
@IBInspectable @MainActor public var isEmpty: Bool { get } -
Declaration
Swift
@IBInspectable @MainActor public var isValid: Bool { get } -
Declaration
Swift
@IBInspectable @MainActor public var isComplete: Bool { get } -
BorderWidth for the text field
Declaration
Swift
@IBInspectable @MainActor public var borderWidth: CGFloat { get set } -
BorderColor for the text field
Declaration
Swift
@IBInspectable @MainActor public var borderColor: UIColor? { get set } -
CornerRadius for the text field
Declaration
Swift
@IBInspectable @MainActor public var cornerRadius: CGFloat { get set } -
MasksToBounds for the text field
Declaration
Swift
@IBInspectable @MainActor public var masksToBounds: Bool { get set } -
Declaration
Swift
@IBInspectable @MainActor public var padding: UIEdgeInsets { get set } -
Placeholder for the text field
Declaration
Swift
@IBInspectable @MainActor public var placeholder: String? { get set } -
Text color for the text field
textColordefault value isblackDeclaration
Swift
@IBInspectable @MainActor public var textColor: UIColor? { get set } -
Size of the text for the text field
sizedefault value is24Declaration
Swift
@IBInspectable @MainActor public var size: Double { get set } -
Tint color for the text field
tfTintColordefault value isblackDeclaration
Swift
@IBInspectable @MainActor public var tfTintColor: UIColor? { get set } -
Text alignment
textAlignmentdefault value isnaturalDeclaration
Swift
@IBInspectable @MainActor public var textAlignment: NSTextAlignment { get set } -
Allow user to clear text field
clearButtonModedefault value isneverDeclaration
Swift
@IBInspectable @MainActor public var clearButtonMode: UITextField.ViewMode { get set } -
Change UIFont
UITextFieldtext fontDeclaration
Swift
@IBInspectable @MainActor public var font: UIFont? { get set }
-
A delegate that informs the client about the state (validation, focus).
Declaration
Swift
@MainActor public weak var delegate: ForageElementDelegate?
-
Declaration
Swift
@MainActor override public var intrinsicContentSize: CGSize { get } -
Declaration
Swift
@MainActor public func clearText()
-
Make
ForageCardCVVfocused.Declaration
Swift
@discardableResult @MainActor override public func becomeFirstResponder() -> Bool -
Remove focus from
ForageCardCVV.Declaration
Swift
@discardableResult @MainActor override public func resignFirstResponder() -> Bool -
Check if
ForageCardCVVis focused.Declaration
Swift
@MainActor override public var isFirstResponder: Bool { get } -
Declaration
Swift
@MainActor public func focusDidChange(_ state: ObservableState) -
Declaration
Swift
@MainActor public func textFieldDidChange(_ state: ObservableState) -
Declaration
Swift
@MainActor public func textFieldDidBeginEditing(_ textField: UITextField) -
Declaration
Swift
@MainActor public func textFieldDidEndEditing(_ textField: UITextField) -
Determines whether the text field should allow a change of characters within the specified range. This method is called when the user attempts to change the content of the text field.
Declaration
Swift
@MainActor public func textField(_ textField: UITextField, shouldChangeCharactersIn range: NSRange, replacementString: String) -> BoolParameters
textFieldThe text field containing the text.
rangeThe range of characters to be replaced.
replacementStringThe replacement string.
Return Value
trueif the changes should be allowed; otherwise,false.