Skip to content

Commit c039915

Browse files
committed
Made respondToSwipe method open and only requiring a direction.
The reason is that we might want to call it programatically, for example when pressing a button.
1 parent 139a8f6 commit c039915

File tree

3 files changed

+22
-22
lines changed

3 files changed

+22
-22
lines changed

Example/Pods/Target Support Files/KSSwipeStack/Info.plist

Lines changed: 20 additions & 20 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

KSSwipeStack.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
Pod::Spec.new do |s|
1010
s.name = 'KSSwipeStack'
11-
s.version = '0.4.1'
11+
s.version = '0.4.2'
1212
s.summary = 'A Swift card swiping library created by Kicksort Consulting AB'
1313

1414
# This description is used to generate tags and improve search results.

KSSwipeStack/Classes/SwipeView.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -294,7 +294,7 @@ public class SwipeView: UIView {
294294
/// - Parameters:
295295
/// - direction: The direction in which the view was swiped
296296
/// - gesture: The gesture generating the swipe
297-
func respondToSwipe(_ direction: SwipeDirection, gesture: UIGestureRecognizer) {
297+
open func respondToSwipe(_ direction: SwipeDirection, gesture: UIGestureRecognizer? = nil) {
298298
guard let card = getCurrentCard() else {
299299
// TODO
300300
return

0 commit comments

Comments
 (0)