Skip to content

Commit

Permalink
Fix table view binding animated argument
Browse files Browse the repository at this point in the history
  • Loading branch information
srdanrasic committed Nov 7, 2016
1 parent 0ae5713 commit 6bfa47b
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
4 changes: 2 additions & 2 deletions Bond.podspec
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Pod::Spec.new do |s|

s.name = "Bond"
s.version = "5.0.1"
s.version = "5.0.2"
s.summary = "A Swift binding framework"

s.description = <<-DESC
Expand All @@ -21,7 +21,7 @@ Pod::Spec.new do |s|
s.ios.deployment_target = "8.0"
s.osx.deployment_target = "10.10"
s.tvos.deployment_target = '9.0'
s.source = { :git => "https://github.com/SwiftBond/Bond.git", :tag => "v5.0.1" }
s.source = { :git => "https://github.com/SwiftBond/Bond.git", :tag => "v5.0.2" }
s.source_files = 'Sources/**/*.swift', 'Bond/*.{h,m,swift}'
s.ios.exclude_files = "Sources/AppKit"
s.tvos.exclude_files = "Sources/AppKit"
Expand Down
2 changes: 1 addition & 1 deletion Bond/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<key>CFBundlePackageType</key>
<string>FMWK</string>
<key>CFBundleShortVersionString</key>
<string>5.0.1</string>
<string>5.0.2</string>
<key>CFBundleVersion</key>
<string>$(CURRENT_PROJECT_VERSION)</string>
<key>NSPrincipalClass</key>
Expand Down
3 changes: 2 additions & 1 deletion Sources/UIKit/UITableView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ extension TableViewBond {

private struct SimpleTableViewBond<DataSource: DataSourceProtocol>: TableViewBond {

let animated: Bool
let createCell: (DataSource, IndexPath, UITableView) -> UITableViewCell

func cellForRow(at indexPath: IndexPath, tableView: UITableView, dataSource: DataSource) -> UITableViewCell {
Expand All @@ -77,7 +78,7 @@ public extension SignalProtocol where Element: DataSourceEventProtocol, Error ==

@discardableResult
public func bind(to tableView: UITableView, animated: Bool = true, createCell: @escaping (DataSource, IndexPath, UITableView) -> UITableViewCell) -> Disposable {
return bind(to: tableView, using: SimpleTableViewBond<DataSource>(createCell: createCell))
return bind(to: tableView, using: SimpleTableViewBond<DataSource>(animated: animated, createCell: createCell))
}

@discardableResult
Expand Down

0 comments on commit 6bfa47b

Please sign in to comment.