aboutsummaryrefslogtreecommitdiffstats
path: root/WireGuard/WireGuard/UI/iOS/SettingsTableViewController.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/SettingsTableViewController.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 '')
-rw-r--r--WireGuard/WireGuard/UI/iOS/SettingsTableViewController.swift8
1 files changed, 4 insertions, 4 deletions
diff --git a/WireGuard/WireGuard/UI/iOS/SettingsTableViewController.swift b/WireGuard/WireGuard/UI/iOS/SettingsTableViewController.swift
index acca64d..ca8f45b 100644
--- a/WireGuard/WireGuard/UI/iOS/SettingsTableViewController.swift
+++ b/WireGuard/WireGuard/UI/iOS/SettingsTableViewController.swift
@@ -12,13 +12,13 @@ class SettingsTableViewController: UITableViewController {
case exportZipArchive = "Export zip archive"
}
- let settingsFieldsBySection : [[SettingsFields]] = [
+ let settingsFieldsBySection: [[SettingsFields]] = [
[.exportZipArchive],
[.iosAppVersion, .goBackendVersion]
]
let tunnelsManager: TunnelsManager?
- var wireguardCaptionedImage: (view: UIView, size: CGSize)? = nil
+ var wireguardCaptionedImage: (view: UIView, size: CGSize)?
init(tunnelsManager: TunnelsManager?) {
self.tunnelsManager = tunnelsManager
@@ -97,7 +97,7 @@ class SettingsTableViewController: UITableViewController {
// popoverPresentationController shall be non-nil on the iPad
activityVC.popoverPresentationController?.sourceView = sourceView
present(activityVC, animated: true)
-
+
} catch (let error) {
showErrorAlert(title: "Unable to export", message: "There was an error exporting the tunnel configuration archive: \(String(describing: error))")
}
@@ -201,7 +201,7 @@ class TunnelSettingsTableViewButtonCell: UITableViewCell {
get { return button.title(for: .normal) ?? "" }
set(value) { button.setTitle(value, for: .normal) }
}
- var onTapped: (() -> Void)? = nil
+ var onTapped: (() -> Void)?
let button: UIButton