This repository has been archived by the owner on Nov 5, 2020. It is now read-only.
Releases: okhanokbay/ExpyTableView
Releases · okhanokbay/ExpyTableView
Necessary changes
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:
Improving method calls
0.3.1 Merge remote-tracking branch 'origin/master'
Delegate method additions, private method expositions
- 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.