From: Andrej Mihajlov Date: Tue, 15 Dec 2020 13:21:39 +0000 (+0100) Subject: WireGuardApp: Replace AnyObject with a concrete NSKeyValueObservation X-Git-Tag: 1.0.10-18~2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=a786f5df60d79762b6657608a66e8b28446671bf;p=thirdparty%2Fwireguard-apple.git WireGuardApp: Replace AnyObject with a concrete NSKeyValueObservation Signed-off-by: Andrej Mihajlov --- 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)