Skip to content

Commit ca6eb80

Browse files
committed
Fix EditorStyleSliderView override for gestureRecognizerShouldBegin
UIView declares the same selector; release_arm64 (-Werror) requires override on the Phase 3 Swift slider replacement. Co-authored-by: D3C0Y <decoder-dev@users.noreply.github.com>
1 parent 5bbe24d commit ca6eb80

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎submodules/TelegramUI/Components/SliderComponent/Sources/EditorStyleSliderView.swift‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -299,7 +299,7 @@ public final class EditorStyleSliderView: UIControl, UIGestureRecognizerDelegate
299299
}
300300
}
301301

302-
public func gestureRecognizerShouldBegin(_ gestureRecognizer: UIGestureRecognizer) -> Bool {
302+
public override func gestureRecognizerShouldBegin(_ gestureRecognizer: UIGestureRecognizer) -> Bool {
303303
guard gestureRecognizer === self.panGestureRecognizer else { return true }
304304
let velocity = self.panGestureRecognizer.velocity(in: self)
305305
return abs(velocity.x) > abs(velocity.y)

0 commit comments

Comments
 (0)