We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9dc0739 commit 7fc759cCopy full SHA for 7fc759c
Sources/ComponentsKit/Button/UKButton.swift
@@ -157,13 +157,7 @@ open class UKButton: UIView, UKComponent {
157
) {
158
super.touchesCancelled(touches, with: event)
159
160
- defer { self.isPressed = false }
161
-
162
- if self.model.isEnabled,
163
- let location = touches.first?.location(in: self),
164
- self.bounds.contains(location) {
165
- self.action()
166
- }
+ self.isPressed = false
167
}
168
169
open override func traitCollectionDidChange(
0 commit comments