Created
April 13, 2021 21:05
-
-
Save isaac-weisberg/b66d1f961e7d0b291cd4e028c8086908 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class TransactionTable: CustomTableView { | |
override init(viewModel: TransactionTableViewModel) { | |
super.init() | |
viewModel.transactionViewModels.forEach { transactionViewModel in | |
switch transactionViewModel { | |
case .info(let viewModel): | |
let cell = TransactionInfoCell(viewModel: viewModel) | |
self.addCell(cell) | |
case .infoPendingAccept(let viewModel): | |
let cell = TransactionInfoWAcceptCell(viewModel: viewModel) | |
self.addCell(cell) | |
} | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment