Thursday, 24 January 2019

Card Style Cell

Check source code at Github
https://github.com/Sylvia-YiyinShen/CardStyleCellDemo


  • Easy to use
  • Based on MVVM
  • Data driven

How to use
  • Make you own cell subclass CardStyleCell and override leftPadding/rightPadding
  • Make you own CellViewModel conform to CardStyleCellViewModelProtocol
  • Call configure(viewModel: CardStyleCellViewModelProtocol) on the cell in func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell

No comments:

Post a Comment