diff options
author | Andrej Mihajlov <and@mullvad.net> | 2020-12-15 14:21:39 +0100 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2020-12-15 15:56:22 +0100 |
commit | a786f5df60d79762b6657608a66e8b28446671bf (patch) | |
tree | ca53f93f37d256980e19b312bce2d504f6aca935 | |
parent | WireGuardApp: Animate switch control in TunnelListCell (diff) | |
download | wireguard-apple-a786f5df60d79762b6657608a66e8b28446671bf.tar.xz wireguard-apple-a786f5df60d79762b6657608a66e8b28446671bf.zip |
WireGuardApp: Replace AnyObject with a concrete NSKeyValueObservation
Signed-off-by: Andrej Mihajlov <and@mullvad.net>
-rw-r--r-- | Sources/WireGuardApp/UI/iOS/View/TunnelListCell.swift | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Sources/WireGuardApp/UI/iOS/View/TunnelListCell.swift b/Sources/WireGuardApp/UI/iOS/View/TunnelListCell.swift index 636443e..e28b700 100644 --- a/Sources/WireGuardApp/UI/iOS/View/TunnelListCell.swift +++ b/Sources/WireGuardApp/UI/iOS/View/TunnelListCell.swift @@ -41,8 +41,8 @@ class TunnelListCell: UITableViewCell { let statusSwitch = UISwitch() - private var statusObservationToken: AnyObject? - private var nameObservationToken: AnyObject? + private var statusObservationToken: NSKeyValueObservation? + private var nameObservationToken: NSKeyValueObservation? override init(style: UITableViewCell.CellStyle, reuseIdentifier: String?) { super.init(style: style, reuseIdentifier: reuseIdentifier) |