diff --git a/README.md b/README.md index dfad30d..d08f63e 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,7 @@ Build Status Swift 3.0 compatible Carthage compatible - CocoaPods compatible + CocoaPods compatible Platform iOS License: MIT

@@ -84,13 +84,13 @@ You could have as many rows and sections as you need. It nice to have some actions that related to your cells: ```swift -let action = TableRowAction(.click) { (data) in +let action = TableRowAction(.click) { (options) in // you could access any useful information that relates to the action - // data.cell - StringTableViewCell? - // data.item - String - // data.indexPath - IndexPath + // options.cell - StringTableViewCell? + // options.item - String + // options.indexPath - IndexPath } let row = TableRow(item: "some", actions: [action]) @@ -98,10 +98,10 @@ let row = TableRow(item: "some", actions: [action]) Or, using nice chaining approach: ```swift let row = TableRow(item: "some") - .action(.click) { (data) in + .on(.click) { (options) in } - .action(.shouldHighlight) { (data) -> Bool in + .on(.shouldHighlight) { (options) -> Bool in return false } ``` @@ -126,7 +126,7 @@ class MyTableViewCell: UITableViewCell, ConfigurableCell { ``` And handle them accordingly: ```swift -let myAction = TableRowAction(.custom(MyActions.ButtonClicked)) { (data) in +let myAction = TableRowAction(.custom(MyActions.ButtonClicked)) { (options) in } ```