Last active
April 17, 2021 10:31
-
-
Save isaac-weisberg/1bdef569df81daac5e136c721873f43f to your computer and use it in GitHub Desktop.
Revisions
-
isaac-weisberg revised this gist
Apr 17, 2021 . 1 changed file with 2 additions and 2 deletions.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -4,9 +4,9 @@ class TransactionCellView: UIView { let amountLabel = UILabel() init(viewModel: TransactionCellViewModel) { // ... omitted configuration of the view style ... // ... omitted AutoLayout code ... iconImageView.image = UIImage(named: viewModel.icon) nameLabel.text = viewModel.name -
isaac-weisberg created this gist
Apr 14, 2021 .There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,15 @@ class TransactionCellView: UIView { let iconImageView = UIImageView() let nameLabel = UILabel() let amountLabel = UILabel() init(viewModel: TransactionCellViewModel) { // ... ommited configuration of the view style ... // ... ommited AutoLayout code ... iconImageView.image = UIImage(named: viewModel.icon) nameLabel.text = viewModel.name amountLabel.text = viewModel.amountFormatted } }