Skip to content

Commit 0ae8441

Browse files
authored
fix: activitylistview
1 parent c95d241 commit 0ae8441

File tree

2 files changed

+13
-9
lines changed

2 files changed

+13
-9
lines changed

BDKSwiftExampleWallet/View/Activity/ActivityListView.swift

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -25,13 +25,17 @@ struct ActivityListView: View {
2525
.padding(.vertical)
2626

2727
if viewModel.displayMode == .transactions {
28-
TransactionListView(
29-
viewModel: .init(),
30-
transactions: viewModel.transactions,
31-
walletSyncState: viewModel.walletSyncState,
32-
format: balanceFormat,
33-
fiatPrice: viewModel.fiatPrice
34-
)
28+
ScrollView {
29+
TransactionListView(
30+
viewModel: .init(),
31+
transactions: viewModel.transactions,
32+
walletSyncState: viewModel.walletSyncState,
33+
format: balanceFormat,
34+
fiatPrice: viewModel.fiatPrice
35+
)
36+
.frame(maxWidth: .infinity, alignment: .topLeading)
37+
}
38+
.ignoresSafeArea(edges: .bottom)
3539
.transition(.blurReplace)
3640
} else {
3741
LocalOutputListView(
@@ -53,8 +57,8 @@ struct ActivityListView: View {
5357
: "\(viewModel.localOutputs.count) Output\(viewModel.localOutputs.count == 1 ? "" : "s")"
5458
)
5559
.navigationBarTitleDisplayMode(.inline)
60+
.padding(.horizontal)
5661
.padding(.top)
57-
.padding()
5862

5963
}
6064

BDKSwiftExampleWallet/View/Activity/TransactionListView.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ struct TransactionListView: View {
142142
}
143143

144144
}
145-
.frame(maxWidth: .infinity, alignment: .leading)
145+
.frame(maxWidth: .infinity, alignment: .topLeading)
146146
.alert(isPresented: $viewModel.showingWalletTransactionsViewErrorAlert) {
147147
Alert(
148148
title: Text("Wallet Transaction Error"),

0 commit comments

Comments
 (0)