Monday 15 April 2019

Custom Expandable Table Widget

Check demo in Github
https://github.com/Sylvia-YiyinShen/ExpandableTableWidget


Highly reusable and customisable
  • Support custom section header view and custom table cell
  • Allows to add UITapGestureRecognizer to any component inside custom header view




























How to use
  • Make your own head view conform to ExpandableTableHeaderViewProtocol
  • Make your own table cell conform to ExpandableTableCellProtocol
  • Make your own section model conform to ExpandableTableSectionModelProtocol
  • Make your own item model conform to ExpandableTableSectionItemModelProtocol
  • Just invoke this function on the widget:  public func configure(with sectionModels: [ExpandableTableSectionModelProtocol], headerViewNib: UINib, cellNib: UINib, rowAnimation: UITableView.RowAnimation? = default)



No comments:

Post a Comment