Other Classes
The following classes are available globally.
-
Coordinates external card scanning integrations with a bound
VGSTextField(typically aVGSCardTextFieldor its SwiftUI representable).Responsibilities:
- Holds weak reference to the target text field.
Usage:
- Instantiate and pass into a SwiftUI representable via
.cardScanCoordinator(...). - After a successful scan, automatically populate field & trigger validation.
Security:
- Ensure scanned text is handled only in-memory until submitted or tokenized.
- Avoid persisting scanned PAN in logs or user defaults.
Declaration
Swift
@MainActor public class VGSCardScanCoordinator : ObservableObject
View on GitHub
Other Classes Reference