VGSDateTextFieldRepresentable

@MainActor
public struct VGSDateTextFieldRepresentable : UIViewRepresentable, VGSDateTextFieldRepresentableProtocol, VGSTextFieldRepresentableCallbacksProtocol

A SwiftUI wrapper for VGSDateTextField enabling secure date collection (day/month/year) with picker UI.

Features:

  • Chainable configuration similar to base representable.
  • Custom month label formatting via monthPickerFormat.
  • State & editing callbacks.

Security & Validation:

Date

Date selection constrained by configuration date ranges.

TextField interaction callbacks

Initialization

Configuration methods

  • Set UIFont value.

    Declaration

    Swift

    @MainActor
    public func font(_ font: UIFont) -> VGSDateTextFieldRepresentable
  • Set placeholder string.

    Declaration

    Swift

    @MainActor
    public func placeholder(_ text: String) -> VGSDateTextFieldRepresentable
  • Set attributedPlaceholder string.

    Declaration

    Swift

    @MainActor
    public func attributedPlaceholder(_ text: NSAttributedString?) -> VGSDateTextFieldRepresentable
  • Set UITextAutocorrectionType type.

    Declaration

    Swift

    @MainActor
    public func autocorrectionType(_ type: UITextAutocorrectionType) -> VGSDateTextFieldRepresentable
  • Set UITextAutocapitalizationType type.

    Declaration

    Swift

    @MainActor
    public func autocapitalizationType(_ type: UITextAutocapitalizationType) -> VGSDateTextFieldRepresentable
  • Set UITextSpellCheckingType type.

    Declaration

    Swift

    @MainActor
    public func spellCheckingType(_ type: UITextSpellCheckingType) -> VGSDateTextFieldRepresentable
  • Set UIEdgeInsets insets.

    Declaration

    Swift

    @MainActor
    public func textFieldPadding(_ insets: UIEdgeInsets) -> VGSDateTextFieldRepresentable
  • Set NSTextAlignment type.

    Declaration

    Swift

    @MainActor
    public func textAlignment(_ alignment: NSTextAlignment) -> VGSDateTextFieldRepresentable
  • Set isSecureTextEntry value.

    Declaration

    Swift

    @MainActor
    public func setSecureTextEntry(_ secure: Bool) -> VGSDateTextFieldRepresentable
  • Set adjustsFontForContentSizeCategory value.

    Declaration

    Swift

    @MainActor
    public func adjustsFontForContentSizeCategory(_ adjusts: Bool) -> VGSDateTextFieldRepresentable
  • Set keyboardAccessoryView view.

    Declaration

    Swift

    @MainActor
    public func keyboardAccessoryView(_ view: UIView?) -> VGSDateTextFieldRepresentable
  • Set textFieldAccessibilityLabel string.

    Declaration

    Swift

    @MainActor
    public func textFieldAccessibilityLabel(_ label: String) -> VGSDateTextFieldRepresentable
  • Set foregroundColor.

    Declaration

    Swift

    @MainActor
    public func foregroundColor(_ color: UIColor) -> VGSDateTextFieldRepresentable
  • Set backgroundColor.

    Declaration

    Swift

    @MainActor
    public func backgroundColor(_ color: UIColor) -> VGSDateTextFieldRepresentable
  • Set borderColor and lineWidth.

    Declaration

    Swift

    @MainActor
    public func border(color: UIColor, lineWidth: CGFloat) -> VGSDateTextFieldRepresentable
  • Set cornerRadius.

    Declaration

    Swift

    @MainActor
    public func cornerRadius(_ cornerRadius: CGFloat) -> VGSDateTextFieldRepresentable
  • Coordinates connection between scan data and text field.

    Declaration

    Swift

    @MainActor
    public func cardScanCoordinator(_ coordinator: VGSCardScanCoordinator) -> VGSDateTextFieldRepresentable

VGSDateTextField specific methods

Handle editing events