ExpyTableView Versions Save

Make your table view expandable just by implementing one method.

1.0

6 years ago

BREAKING CHANGES:

  • Removing unnecessary "expandableSection" array and its use cases
  • Clean up the code, rename some delegate methods:
    • OLD func expandableCell(forSection section: Int, inTableView tableView: ExpyTableView) -> UITableViewCell

    • OLD func canExpand(section: Int, inTableView tableView: ExpyTableView) -> Bool

    • NEW func tableView(tableView: ExpyTableView, expandableCellForSection section: Int) -> UITableViewCell

    • NEW func tableView(_ tableView: ExpyTableView, canExpandSection section: Int) -> Bool

see commit "134e83f" for more details.

ADDITIONS:

  • Support Swift 4.0 #15

  • Completes #21 and adds abstractions to ExpyTableView class

  • Add explanations for #12

0.3.1

7 years ago

0.3.0

7 years ago
  • Delegate methods are unified now. It returns ExpyState instead of ExpyActionType.
  • ExpyTableViewHeaderCell protocol is added. If a cell conforms to it, it gets state change updates in the changeState method.
  • Method named getActionType is removed.
  • ExpyState with didExpand and didColapse works more accurate now.(They were being called before the animation completely finished.)
  • First cell which is used to generate an expandable header is not being reloaded anymore during the expanding or collapsing animation. Because, this was preventing implementation of independent animations in it. (For example rotating the arrow in header cell.)
  • When an expandable cell tapped, its userInteractionEnabled parameter becomes false until the animation is completed.
  • Adding cellReuseStatus to changeState method of ExpyTableViewHeaderCell
  • Exposing (expand: section) and (collapse: section) methods.