Skip to content

Commit 25a56e8

Browse files
authored
Merge pull request #54 from seedco/dm-scroll-fix-for-uibutton
Allowing scroll gesture to cancel button presses.
2 parents 8d0e973 + 688fb9b commit 25a56e8

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

SeedStackViewController.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Pod::Spec.new do |s|
22
s.name = "SeedStackViewController"
33
s.module_name = "StackViewController"
4-
s.version = "0.5.0"
4+
s.version = "0.5.1"
55
s.summary = "Simplifies the process of building forms and other static content using UIStackView."
66
s.description = "StackViewController is a Swift framework that simplifies the process of building forms and other static content using UIStackView."
77
s.homepage = "https://github.com/seedco/StackViewController"

StackViewController/AutoScrollView.swift

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,11 @@ open class AutoScrollView: UIScrollView {
7171
deinit {
7272
NotificationCenter.default.removeObserver(self)
7373
}
74+
75+
open override func touchesShouldCancel(in view: UIView) -> Bool {
76+
guard view.isKind(of: UIButton.self) else { return super.touchesShouldCancel(in: view) }
77+
return true
78+
}
7479

7580
// MARK: Notifications
7681

0 commit comments

Comments
 (0)