aboutsummaryrefslogtreecommitdiffstats
path: root/WireGuard/WireGuard/UI/iOS/View/TunnelListCell.swift
diff options
context:
space:
mode:
authorRoopesh Chander <roop@roopc.net>2018-12-18 20:00:01 +0530
committerRoopesh Chander <roop@roopc.net>2018-12-18 23:00:27 +0530
commit3ae9fb538df8a3ff80af09f297864e74fe0a4336 (patch)
tree6283e9c9cf2f9b2f3c80b580b472e02a2fccec3b /WireGuard/WireGuard/UI/iOS/View/TunnelListCell.swift
parentTunnel detail: Update restorationIdentifier when tunnel name changes (diff)
downloadwireguard-apple-3ae9fb538df8a3ff80af09f297864e74fe0a4336.tar.xz
wireguard-apple-3ae9fb538df8a3ff80af09f297864e74fe0a4336.zip
s/Observervation/Observation/g;
Signed-off-by: Roopesh Chander <roop@roopc.net>
Diffstat (limited to '')
-rw-r--r--WireGuard/WireGuard/UI/iOS/View/TunnelListCell.swift8
1 files changed, 4 insertions, 4 deletions
diff --git a/WireGuard/WireGuard/UI/iOS/View/TunnelListCell.swift b/WireGuard/WireGuard/UI/iOS/View/TunnelListCell.swift
index 14a7194..d13346a 100644
--- a/WireGuard/WireGuard/UI/iOS/View/TunnelListCell.swift
+++ b/WireGuard/WireGuard/UI/iOS/View/TunnelListCell.swift
@@ -8,12 +8,12 @@ class TunnelListCell: UITableViewCell {
didSet(value) {
// Bind to the tunnel's name
nameLabel.text = tunnel?.name ?? ""
- nameObservervationToken = tunnel?.observe(\.name) { [weak self] tunnel, _ in
+ nameObservationToken = tunnel?.observe(\.name) { [weak self] tunnel, _ in
self?.nameLabel.text = tunnel.name
}
// Bind to the tunnel's status
update(from: tunnel?.status)
- statusObservervationToken = tunnel?.observe(\.status) { [weak self] tunnel, _ in
+ statusObservationToken = tunnel?.observe(\.status) { [weak self] tunnel, _ in
self?.update(from: tunnel.status)
}
}
@@ -36,8 +36,8 @@ class TunnelListCell: UITableViewCell {
let statusSwitch = UISwitch()
- private var statusObservervationToken: AnyObject?
- private var nameObservervationToken: AnyObject?
+ private var statusObservationToken: AnyObject?
+ private var nameObservationToken: AnyObject?
override init(style: UITableViewCell.CellStyle, reuseIdentifier: String?) {
super.init(style: style, reuseIdentifier: reuseIdentifier)