Skip to content

Commit

Permalink
Merge branch 'IPC-162-more-information-screen' into IPC-153_payment_r…
Browse files Browse the repository at this point in the history
…eview_screen
  • Loading branch information
razvancapra committed Mar 18, 2024
2 parents 6a68da7 + 4239bcb commit 2df0a32
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,7 @@ extension PaymentInfoViewController: UICollectionViewDelegateFlowLayout {
let padding = (contentWidth - totalCellWidth) / 2.0
return UIEdgeInsets(top: 0, left: padding, bottom: 0, right: padding)
} else {
return UIEdgeInsets.zero
return UIEdgeInsets(top: 0, left: Constants.leftRightPadding, bottom: 0, right: 0)
}
}
return UIEdgeInsets.zero
Expand Down Expand Up @@ -308,6 +308,7 @@ extension PaymentInfoViewController: UITableViewDelegate, UITableViewDataSource
}

func tableView(_ tableView: UITableView, viewForFooterInSection section: Int) -> UIView? {
guard section < viewModel.questions.count - 1 else { return UIView() }
let separatorView = UIView(frame: CGRect(x: 0, y: 0, width: .greatestFiniteMagnitude, height: Constants.questionSectionSeparatorHeight))
separatorView.backgroundColor = viewModel.separatorColor
return separatorView
Expand Down

0 comments on commit 2df0a32

Please sign in to comment.