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
+8
View File
@@ -33,6 +33,14 @@ struct HomeView: View {
.onChange(of: vm.pendingTransferContact) { _, contact in
if contact != nil { selectedTab = 3 }
}
// When a QR code is scanned from Dashboard, jump to the Transfer tab
.onChange(of: vm.pendingTransferQRData) { _, qrData in
if qrData != nil { selectedTab = 3 }
}
// When a BML gateway QR is scanned from Dashboard, jump to the Transfer tab
.onChange(of: vm.pendingBmlQrUrl) { _, url in
if url != nil { selectedTab = 3 }
}
}
@ViewBuilder