Below I have printed out the account balance data directly. You can see the first balance has an amount of 0 and is "debit" and the second balance has an amount of 1 and is also "debit."
let balanceQuery = AccountBalanceQuery()
let balances = try await FinanceStore.shared.accountBalances(query: balanceQuery)
for balance in balances {
dump(balance)
}
▿ FinanceKit.AccountBalance
- id: A
- accountID:X
▿ currentBalance: FinanceKit.CurrentBalance.availableAndBooked
▿ availableAndBooked: (2 elements)
▿ available: FinanceKit.Balance
▿ amount: FinanceKit.CurrencyAmount
▿ amount: 0
▿ _mantissa: (8 elements)
- .0: 0
- .1: 0
- .2: 0
- .3: 0
- .4: 0
- .5: 0
- .6: 0
- .7: 0
- currencyCode: "USD"
▿ asOfDate: 2026-03-30 17:02:51 +0000
- timeIntervalSinceReferenceDate: 796582971.025685
- creditDebitIndicator: FinanceKit.CreditDebitIndicator.debit
▿ booked: FinanceKit.Balance
▿ amount: FinanceKit.CurrencyAmount
▿ amount: 0
▿ _mantissa: (8 elements)
- .0: 0
- .1: 0
- .2: 0
- .3: 0
- .4: 0
- .5: 0
- .6: 0
- .7: 0
- currencyCode: "USD"
▿ asOfDate: 2026-03-30 17:02:51 +0000
- timeIntervalSinceReferenceDate: 796582971.025685
- creditDebitIndicator: FinanceKit.CreditDebitIndicator.debit
▿ FinanceKit.AccountBalance
- id: B
- accountID: X
▿ currentBalance: FinanceKit.CurrentBalance.availableAndBooked
▿ availableAndBooked: (2 elements)
▿ available: FinanceKit.Balance
▿ amount: FinanceKit.CurrencyAmount
▿ amount: 1
▿ _mantissa: (8 elements)
- .0: 1
- .1: 0
- .2: 0
- .3: 0
- .4: 0
- .5: 0
- .6: 0
- .7: 0
- currencyCode: "USD"
▿ asOfDate: 2026-04-07 17:36:57 +0000
- timeIntervalSinceReferenceDate: 797276217.58582
- creditDebitIndicator: FinanceKit.CreditDebitIndicator.debit
▿ booked: FinanceKit.Balance
▿ amount: FinanceKit.CurrencyAmount
▿ amount: 1
▿ _mantissa: (8 elements)
- .0: 1
- .1: 0
- .2: 0
- .3: 0
- .4: 0
- .5: 0
- .6: 0
- .7: 0
- currencyCode: "USD"
▿ asOfDate: 2026-04-07 17:36:57 +0000
- timeIntervalSinceReferenceDate: 797276217.58582
- creditDebitIndicator: FinanceKit.CreditDebitIndicator.debit
Topic:
App & System Services
SubTopic:
General