update readme
This commit is contained in:
parent
8b5ad2fcd1
commit
1ed3db1cb1
|
|
@ -41,6 +41,10 @@ class MainController: UIViewController {
|
|||
row1
|
||||
.addAction(TableRowAction(.shouldHighlight) { (data) -> Bool in
|
||||
|
||||
data.cell
|
||||
data.item
|
||||
data.path
|
||||
|
||||
print("1")
|
||||
|
||||
return false
|
||||
|
|
|
|||
|
|
@ -64,6 +64,10 @@ It nice to have some actions that related to your cells:
|
|||
```swift
|
||||
let action = TableRowAction<String, StringTableViewCell>(.click) { (data) in
|
||||
|
||||
// you could access any useful information that relates to the action
|
||||
// data.cell - StringTableViewCell?
|
||||
// data.item - String
|
||||
// data.path - NSIndexPath
|
||||
}
|
||||
|
||||
let row = TableRow<String, StringTableViewCell>(item: "some", actions: [action])
|
||||
|
|
@ -113,7 +117,7 @@ use_frameworks!
|
|||
pod 'TableKit'
|
||||
```
|
||||
#### Carthage
|
||||
Add the line `github "maxsokolov/tablekit"` to your `Cartfile`
|
||||
Add the line `github "maxsokolov/tablekit"` to your `Cartfile`.
|
||||
#### Manual
|
||||
Clone the repo and drag files from `Sources` folder into your Xcode project.
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue