From 8991138f187f939a7455263b0ed2b7a1ff8ec52d Mon Sep 17 00:00:00 2001
From: Max Sokolov
Date: Sun, 16 Oct 2016 12:35:42 +0300
Subject: [PATCH] bump readme
---
README.md | 16 ++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)
diff --git a/README.md b/README.md
index dfad30d..d08f63e 100644
--- a/README.md
+++ b/README.md
@@ -4,7 +4,7 @@
-
+
@@ -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
}
```