Skip to content

Commit

Permalink
Fix possible swipe action glitch
Browse files Browse the repository at this point in the history
  • Loading branch information
AndrewBennet committed Mar 16, 2019
1 parent ec4b881 commit 73d42cd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ReadingList/ViewControllers/Main/BookTable.swift
Original file line number Diff line number Diff line change
Expand Up @@ -342,7 +342,7 @@ class BookTable: UITableViewController { //swiftlint:disable:this type_body_leng
return UISwipeActionsConfiguration(performFirstActionWithFullSwipe: false, actions: actions)
}

let leadingSwipeAction = UIContextualAction(style: .normal, title: readStateOfSection == .toRead ? "Start" : "Finish") { _, _, callback in
let leadingSwipeAction = UIContextualAction(style: .destructive, title: readStateOfSection == .toRead ? "Start" : "Finish") { _, _, callback in
let book = self.resultsController.object(at: indexPath)
if readStateOfSection == .toRead {
book.setReading(started: Date())
Expand Down

0 comments on commit 73d42cd

Please sign in to comment.