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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user