]> git.ipfire.org Git - thirdparty/wireguard-apple.git/commitdiff
WireGuardApp: Replace AnyObject with a concrete NSKeyValueObservation
authorAndrej Mihajlov <and@mullvad.net>
Tue, 15 Dec 2020 13:21:39 +0000 (14:21 +0100)
committerJason A. Donenfeld <Jason@zx2c4.com>
Tue, 15 Dec 2020 14:56:22 +0000 (15:56 +0100)
Signed-off-by: Andrej Mihajlov <and@mullvad.net>
Sources/WireGuardApp/UI/iOS/View/TunnelListCell.swift

index 636443e7d27189f33bc9a1c08ffb993620419d1c..e28b7005b3cee515ce2d32e72b8490b41a499fee 100644 (file)
@@ -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)