Add Tap to Pay feature and misc fixes

Adds BML contactless token fetching, APDU emulation utility, TapToPayViewModel, and TapToPayView with NFC animation. Also updates QR scanner, transfer flow, dashboard, and home views.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-06-08 01:27:27 +05:00
co-authored by Claude Sonnet 4.6
parent 160ef97e68
commit 2bbb280380
10 changed files with 1080 additions and 49 deletions
@@ -28,6 +28,15 @@ final class HomeViewModel {
// Set this to navigate Transfer tab pre-filled with a contact
var pendingTransferContact: BankContact? = nil
// Set this to navigate Transfer tab with QR-scanned data
var pendingTransferQRData: PaymvQrResult? = nil
// Set this to navigate Transfer tab with a BML gateway QR URL
var pendingBmlQrUrl: String? = nil
// The card account number that the QR was scanned from (card machine)
var pendingQrFromCard: String? = nil
private let cacheRefreshInterval: TimeInterval = 5 * 60
private var lastDashboardRefresh = Date.distantPast
private var lastContactsRefresh = Date.distantPast