Skip to content

Commit

Permalink
Merge pull request #5 from Msurrow/master
Browse files Browse the repository at this point in the history
Made it possible to subclass SwipyCell for custom tableview cells
  • Loading branch information
moritzsternemann committed Nov 25, 2016
2 parents 8677356 + b45dca9 commit b7d2302
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Source/SwipyCell.swift
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ public protocol SwipyCellDelegate {
func swipeableTableViewCell(_ cell: SwipyCell, didSwipeWithPercentage percentage: CGFloat)
}

public class SwipyCell: UITableViewCell {
open class SwipyCell: UITableViewCell {

fileprivate typealias `Self` = SwipyCell

Expand Down Expand Up @@ -119,7 +119,7 @@ public class SwipyCell: UITableViewCell {

// MARK: - Prepare reuse

override public func prepareForReuse() {
override open func prepareForReuse() {
super.prepareForReuse()

uninstallSwipingView()
Expand Down Expand Up @@ -273,7 +273,7 @@ public class SwipyCell: UITableViewCell {

// MARK: - UIGestureRecognizerDelegate

override public func gestureRecognizerShouldBegin(_ gestureRecognizer: UIGestureRecognizer) -> Bool {
override open func gestureRecognizerShouldBegin(_ gestureRecognizer: UIGestureRecognizer) -> Bool {
guard let g = gestureRecognizer as? UIPanGestureRecognizer else { return false }

let point = g.velocity(in: self)
Expand Down

0 comments on commit b7d2302

Please sign in to comment.