Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ class BuildTransactionViewModel {
var calculateFee: String?
var psbt: Psbt?
var showingBuildTransactionViewErrorAlert = false
var transactionSentSuccessfully = false

init(
bdkClient: BDKClient = .live
Expand Down Expand Up @@ -72,7 +71,6 @@ class BuildTransactionViewModel {
func send(address: String, amount: UInt64, feeRate: UInt64) {
do {
try bdkClient.send(address, amount, feeRate)
self.transactionSentSuccessfully = true
NotificationCenter.default.post(
name: Notification.Name("TransactionSent"),
object: nil
Expand Down
2 changes: 2 additions & 0 deletions BDKSwiftExampleWallet/View/Send/AmountView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ struct AmountView: View {
VStack(spacing: 4) {
Text("\(numpadAmount.formattedWithSeparator) sats")
.textStyle(BitcoinTitle1())
.contentTransition(.numericText())
.animation(.default, value: numpadAmount)
if let balance = viewModel.balanceTotal {
HStack(spacing: 2) {
Text(balance.delimiter)
Expand Down
Loading