Skip to content

Commit eecf2b6

Browse files
committed
gesture parameter is invisible
1 parent a82f9b9 commit eecf2b6

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

Sources/DeclarativeLayoutKit/Chaining/Actions/UIGestureRecognizer+Action.swift

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,10 @@ import UIKit
1313
/// Using:
1414
///
1515
/// UIView()
16-
/// .addGesture(gesture: UITapGestureRecognizer()
17-
/// .addAction {
18-
/// // ...
19-
/// })
16+
/// .addGesture(UITapGestureRecognizer()
17+
/// .addAction {
18+
/// // ...
19+
/// })
2020
extension UIGestureRecognizer {
2121
func addAction(_ action: @escaping () -> Void) -> Self {
2222
let action = ClosureAction(attachTo: self, closure: action)

Sources/DeclarativeLayoutKit/Chaining/Actions/UIView+Gesture.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ public extension UIView {
3535
return self
3636
}
3737

38-
func addGesture<Gesture: UIGestureRecognizer>(overwrite: Bool = false, gesture: Gesture) -> Self {
38+
func addGesture<Gesture: UIGestureRecognizer>(overwrite: Bool = false, _ gesture: Gesture) -> Self {
3939
addGestureRecognizer(gesture)
4040
return self
4141
}

0 commit comments

Comments
 (0)