diff --git a/Demo/Classes/Presentation/Controllers/MainController.swift b/Demo/Classes/Presentation/Controllers/MainController.swift
index cea1b05..b57a0db 100644
--- a/Demo/Classes/Presentation/Controllers/MainController.swift
+++ b/Demo/Classes/Presentation/Controllers/MainController.swift
@@ -25,7 +25,7 @@ class MainController: UIViewController {
let clickAction = TableRowAction(.click) { [weak self] (data) in
- switch data.path.row {
+ switch data.indexPath.row {
case 0:
self?.performSegueWithIdentifier("autolayoutcells", sender: nil)
case 1:
diff --git a/Demo/Classes/Presentation/Views/AutolayoutTableViewCell.swift b/Demo/Classes/Presentation/Views/AutolayoutTableViewCell.swift
index 4e626f1..28e7248 100644
--- a/Demo/Classes/Presentation/Views/AutolayoutTableViewCell.swift
+++ b/Demo/Classes/Presentation/Views/AutolayoutTableViewCell.swift
@@ -19,7 +19,7 @@ class AutolayoutTableViewCell: UITableViewCell, ConfigurableCell {
@IBOutlet var titleLabel: UILabel!
@IBOutlet var subtitleLabel: UILabel!
- func configure(string: T, isPrototype: Bool) {
+ func configure(with string: T, isPrototype: Bool) {
titleLabel.text = LoremIpsumTitle
subtitleLabel.text = LoremIpsumBody
diff --git a/Demo/Classes/Presentation/Views/ConfigurableTableViewCell.swift b/Demo/Classes/Presentation/Views/ConfigurableTableViewCell.swift
index 20235c3..c98db9d 100644
--- a/Demo/Classes/Presentation/Views/ConfigurableTableViewCell.swift
+++ b/Demo/Classes/Presentation/Views/ConfigurableTableViewCell.swift
@@ -11,7 +11,7 @@ import TableKit
class ConfigurableTableViewCell: UITableViewCell, ConfigurableCell {
- func configure(text: String, isPrototype: Bool) {
+ func configure(with text: String, isPrototype: Bool) {
accessoryType = .DisclosureIndicator
textLabel?.text = text
diff --git a/Demo/Classes/Presentation/Views/NibTableViewCell.swift b/Demo/Classes/Presentation/Views/NibTableViewCell.swift
index 2e0d296..5c980f9 100644
--- a/Demo/Classes/Presentation/Views/NibTableViewCell.swift
+++ b/Demo/Classes/Presentation/Views/NibTableViewCell.swift
@@ -13,7 +13,7 @@ class NibTableViewCell: UITableViewCell, ConfigurableCell {
@IBOutlet weak var titleLabel: UILabel!
- func configure(number: Int, isPrototype: Bool) {
+ func configure(with number: Int, isPrototype: Bool) {
titleLabel.text = "\(number)"
}
diff --git a/README.md b/README.md
index 327826e..0e1778a 100644
--- a/README.md
+++ b/README.md
@@ -4,7 +4,7 @@
-
+
diff --git a/Sources/ConfigurableCell.swift b/Sources/ConfigurableCell.swift
index efa3fcb..d0e9a88 100644
--- a/Sources/ConfigurableCell.swift
+++ b/Sources/ConfigurableCell.swift
@@ -32,7 +32,7 @@ public protocol ConfigurableCell: ReusableCell {
static func estimatedHeight() -> CGFloat?
static func defaultHeight() -> CGFloat?
- func configure(_: T, isPrototype: Bool)
+ func configure(with _: T, isPrototype: Bool)
}
public extension ReusableCell where Self: UITableViewCell {
diff --git a/Sources/TableRow.swift b/Sources/TableRow.swift
index db139b5..8cd6d2c 100644
--- a/Sources/TableRow.swift
+++ b/Sources/TableRow.swift
@@ -79,7 +79,7 @@ public class TableRow