aboutsummaryrefslogtreecommitdiffstats
path: root/WireGuard/WireGuard/UI/iOS/TunnelEditTableViewController.swift
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2018-11-03 19:35:25 +0100
committerJason A. Donenfeld <Jason@zx2c4.com>2018-11-03 19:35:25 +0100
commit955de09c9e0e318642089fe63c4c1d44517e3ff8 (patch)
tree82e99b4f67464fa5c464eff9a7d6db5a40b8d669 /WireGuard/WireGuard/UI/iOS/TunnelEditTableViewController.swift
parentSettings: limit size of logo (diff)
downloadwireguard-apple-955de09c9e0e318642089fe63c4c1d44517e3ff8.tar.xz
wireguard-apple-955de09c9e0e318642089fe63c4c1d44517e3ff8.zip
Global: run through swiftlint
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'WireGuard/WireGuard/UI/iOS/TunnelEditTableViewController.swift')
-rw-r--r--WireGuard/WireGuard/UI/iOS/TunnelEditTableViewController.swift12
1 files changed, 6 insertions, 6 deletions
diff --git a/WireGuard/WireGuard/UI/iOS/TunnelEditTableViewController.swift b/WireGuard/WireGuard/UI/iOS/TunnelEditTableViewController.swift
index 2c217a1..37613c2 100644
--- a/WireGuard/WireGuard/UI/iOS/TunnelEditTableViewController.swift
+++ b/WireGuard/WireGuard/UI/iOS/TunnelEditTableViewController.swift
@@ -12,7 +12,7 @@ protocol TunnelEditTableViewControllerDelegate: class {
class TunnelEditTableViewController: UITableViewController {
- weak var delegate: TunnelEditTableViewControllerDelegate? = nil
+ weak var delegate: TunnelEditTableViewControllerDelegate?
let interfaceFieldsBySection: [[TunnelViewModel.InterfaceField]] = [
[.name],
@@ -388,7 +388,7 @@ extension TunnelEditTableViewController {
func showConfirmationAlert(message: String, buttonTitle: String, from sourceView: UIView,
onConfirmed: @escaping (() -> Void)) {
- let destroyAction = UIAlertAction(title: buttonTitle, style: .destructive) { (action) in
+ let destroyAction = UIAlertAction(title: buttonTitle, style: .destructive) { (_) in
onConfirmed()
}
let cancelAction = UIAlertAction(title: "Cancel", style: .cancel)
@@ -440,8 +440,8 @@ class TunnelEditTableViewKeyValueCell: CopyableLabelTableViewCell {
set(value) { valueTextField.keyboardType = value }
}
- var onValueChanged: ((String) -> Void)? = nil
- var onValueBeingEdited: ((String) -> Void)? = nil
+ var onValueChanged: ((String) -> Void)?
+ var onValueBeingEdited: ((String) -> Void)?
let keyLabel: UILabel
let valueTextField: UITextField
@@ -534,7 +534,7 @@ class TunnelEditTableViewButtonCell: UITableViewCell {
get { return button.tintColor == UIColor.red }
set(value) { button.tintColor = value ? UIColor.red : buttonStandardTintColor }
}
- var onTapped: (() -> Void)? = nil
+ var onTapped: (() -> Void)?
let button: UIButton
var buttonStandardTintColor: UIColor
@@ -586,7 +586,7 @@ class TunnelEditTableViewSwitchCell: UITableViewCell {
}
}
- var onSwitchToggled: ((Bool) -> Void)? = nil
+ var onSwitchToggled: ((Bool) -> Void)?
let switchView: UISwitch