From 5823bc84a1ab810b3fa3fdcd77bf6c2ee50bc7a7 Mon Sep 17 00:00:00 2001 From: Ivan Sein Date: Wed, 11 Sep 2024 10:31:36 +0200 Subject: [PATCH] Fix Swiftlint error. Signed-off-by: Ivan Sein --- NextcloudTalk/UIControlExtensions.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/NextcloudTalk/UIControlExtensions.swift b/NextcloudTalk/UIControlExtensions.swift index e6e9a11e9..d5fce86ef 100644 --- a/NextcloudTalk/UIControlExtensions.swift +++ b/NextcloudTalk/UIControlExtensions.swift @@ -8,7 +8,7 @@ import Foundation extension UIControl { // See: https://stackoverflow.com/a/41438789 - func addAction(for controlEvents: UIControl.Event = .touchUpInside, _ closure: @escaping() -> Void) { + func addAction(for controlEvents: UIControl.Event = .touchUpInside, _ closure: @escaping () -> Void) { addAction(UIAction { (action: UIAction) in closure() }, for: controlEvents) } }