From a7687af12482ab7a8fa484bf8f28bade4d79e1ef Mon Sep 17 00:00:00 2001 From: Ermat Date: Thu, 27 Jul 2023 16:42:13 +0600 Subject: [PATCH] Minor UI fix for CexDeposit module --- .../Modules/Cex/CexDeposit/CexDepositViewController.swift | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/UnstoppableWallet/UnstoppableWallet/Modules/Cex/CexDeposit/CexDepositViewController.swift b/UnstoppableWallet/UnstoppableWallet/Modules/Cex/CexDeposit/CexDepositViewController.swift index acc9150e95..9a270f78ff 100644 --- a/UnstoppableWallet/UnstoppableWallet/Modules/Cex/CexDeposit/CexDepositViewController.swift +++ b/UnstoppableWallet/UnstoppableWallet/Modules/Cex/CexDeposit/CexDepositViewController.swift @@ -220,6 +220,8 @@ extension CexDepositViewController: SectionsDataSource { } if let memo { + let isLast = itemCount == mainRows.count + 1 + mainRows.append( CellBuilderNew.row( rootElement: .hStack([ @@ -236,7 +238,7 @@ extension CexDepositViewController: SectionsDataSource { id: "memo", height: .heightCell48, bind: { cell in - cell.set(backgroundStyle: .lawrence, isLast: itemCount == mainRows.count + 1) + cell.set(backgroundStyle: .lawrence, isLast: isLast) } ) )