Skip to content

Commit

Permalink
Improving donations screen for iOS
Browse files Browse the repository at this point in the history
  • Loading branch information
kamaal111 committed Apr 28, 2024
1 parent a5e3446 commit 1989850
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,6 @@ final class Store: NSObject, ObservableObject {
}

await self.setDonations(donations)
self.products = donations.compactMap(\.product)
return .success(())
})
}
Expand All @@ -117,7 +116,10 @@ final class Store: NSObject, ObservableObject {

@MainActor
private func setDonations(_ donations: [CustomProduct]) {
let products = donations.compactMap(\.product)
self.donations = donations
self.products = products
self.logger.info("Setting \(products.count) donations")
}

@MainActor
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ struct SupportAuthorScreen<ScreenType: NavigatorStackValue>: View {

var body: some View {
ZStack {
KScrollableForm {
ScrollView(.vertical, showsIndicators: true) {
KJustStack {
if self.store.isLoading, !self.store.hasDonations {
KLoading()
Expand Down

0 comments on commit 1989850

Please sign in to comment.