- Notifications
You must be signed in to change notification settings - Fork0
vgs-samples/vgs-collect-show-ios-swiftUI-demo
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
This examples shows how you can integrate VGS Collect/Show iOS SDKs into your SwiftUI application and secure sensitive data with us.
VGS Collect and Show iOS SDK are built upon UIKit, you can integrate VGS Collect and Show viewsusingUIViewRepresentable wrappers into your SwiftUI code.
Check more officialApple tutorials how to adapt UIKit views for SwiftUI.
NOTE: This demo is just an example of how UIKit views from VGS Collect/Show SDKs can be integrated into your SwiftUI application. VGS doesn't have official SwiftUI support yet.
Go to yourVGS organization and establishInbound connection. For this demo you can import pre-built route configuration:
- Find theconfiguration.yaml file inside the app repository and download it.
- Go to theRoutes section on theDashboard page and select theInbound tab.
- PressManage button at the right corner and selectImport YAML file.
- Chooseconfiguration.yaml file that you just downloaded and tap onSave button to save the route.
Clone demo application repository.
git clone git@github.com:vgs-samples/vgs-collect-show-ios-swiftUI-demo.git
Setup"<VAULT_ID>"
.
FindDemoAppConfig.swift
in app and replacevaultId
constant with yourvault id.
Before running iOS projectcd
to the sample project directory and and run:
podupdate
Useworkspace
file and run the demo.
NOTE: CardIO and CardScan support only iOS platform, scanners cannot be used in macOS app even it is built with SwiftUI.
Submit and reveal the form then go to the Logs tab on a Dashboard find a request and secure a payload.Instruction for this step you can findhere.
About
VGS Collect and Show iOS SDKs in SwiftUI Integration Demo
Topics
Resources
Uh oh!
There was an error while loading.Please reload this page.