Skip to content

Commit

Permalink
Fix typo to align with 1.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
jerkoch committed Feb 19, 2017
1 parent 1aa4f7a commit 2fc882c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -101,8 +101,8 @@ override func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexP
Adopt the `SwipeTableViewCellDelegate` protocol:

````swift
func tableView(_ tableView: UITableView, editActionsForRowAt indexPath: IndexPath, for orientation: SwipeActionsOrientation) -> [SwipeAction] {
guard orientation == .right else { return }
func tableView(_ tableView: UITableView, editActionsForRowAt indexPath: IndexPath, for orientation: SwipeActionsOrientation) -> [SwipeAction]? {
guard orientation == .right else { return nil }

let deleteAction = SwipeAction(style: .destructive, title: "Delete") { action, indexPath in
// handle action by updating model with deletion
Expand Down

0 comments on commit 2fc882c

Please sign in to comment.