Skip to content

Commit

Permalink
ready for 1.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
younatics committed Apr 8, 2017
1 parent 40f1205 commit cee9f2a
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
# Updates
## [v1.0.0](https://github.com/younatics/YNExpandableCell/releases/tag/1.0.0)
* Add `func tableView(_ tableView: YNTableView, expandCellWithHeightAt indexPath: IndexPath) -> YNTableViewCell?` method

## [v0.9.0](https://github.com/younatics/YNExpandableCell/releases/tag/0.9.0)
* Add UITest

Expand Down
2 changes: 1 addition & 1 deletion YNExpandableCell.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

Pod::Spec.new do |s|
s.name = 'YNExpandableCell'
s.version = '0.9.0'
s.version = '1.0.0'
s.summary = 'Easiest way to expand and collapse cell for iOS with Swift 3'

s.description = <<-DESC
Expand Down
2 changes: 1 addition & 1 deletion YNExpandableCell.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -106,10 +106,10 @@
isa = PBXGroup;
children = (
19B47FF21E7EE7D7001A91CF /* CHANGELOG.md */,
19B47FF61E7EE7F5001A91CF /* YNExpandableCell.podspec */,
19B47FC21E7E4C13001A91CF /* YNExpandableCell.xcassets */,
19203BF01E782C0C006C3F0D /* YNTableView.swift */,
195275541E98FA0F001764B0 /* YNTableViewCell.swift */,
19B47FF61E7EE7F5001A91CF /* YNExpandableCell.podspec */,
19B47FC41E7EA95D001A91CF /* YNExpandableCell.swift */,
19F0E4C61E7CCCFC00185897 /* YNTableViewExtenstion.swift */,
19203BF31E782C0C006C3F0D /* YNTableViewDelegate.swift */,
Expand Down
2 changes: 0 additions & 2 deletions YNExpandableCell/YNExpandableCell/YNTableView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -246,8 +246,6 @@ open class YNTableView: UITableView, UITableViewDataSource, UITableViewDelegate
for expandedIndexPaths in self.expandedIndexPaths {
if indexPath == expandedIndexPaths {
let selectedIndexPath = IndexPath(row: indexPath.row - 1 - self.expandedRowCountSince(current: indexPath), section: indexPath.section)
print(selectedIndexPath)
print(indexPath)
if let _height = delegate.tableView(self, expandCellWithHeightAt: selectedIndexPath)?.height {
height = _height
}
Expand Down

0 comments on commit cee9f2a

Please sign in to comment.