I have a CollectionView with items like...
Fruit(name: String, price: Int, imageUrl: String)
The user can select multiple Fruits and then proceed to a "checkout" which is a UITableView with all the fruits selected.
The UITableViewCell contains: amountLabel, fruitLabel, priceLabel.
I want to show how many of each fruit and the total price is, in this view.
What is the best way to do this?
What I see now :
Banana - 1$
Orange - 3$
Banana - 1$
Apple - 2$
Apple - 2$
Banana - 1$
Orange - 3$
Orange - 3$
total: 16$
What I want to see:
3x Banana - 3$
2x Apple - 4$
3x Orange - 9$
total: 16$