Skip to content

Commit

Permalink
Minor improvement
Browse files Browse the repository at this point in the history
  • Loading branch information
Enric Enrich committed Jul 14, 2016
1 parent 0586e04 commit c6b4781
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ public class EECellSwipeGestureRecognizer: UIPanGestureRecognizer, UIGestureReco
case .Changed:
self.updateCellPosition()

if let tableView = self.tableView where CGColorGetAlpha(cell.contentView.backgroundColor?.CGColor) == 0 {
if let tableView = self.tableView, let backgroundColor = cell.contentView.backgroundColor where CGColorGetAlpha(backgroundColor.CGColor) == 0 {
cell.contentView.backgroundColor = tableView.backgroundColor
}

Expand Down

0 comments on commit c6b4781

Please sign in to comment.