From a786f5df60d79762b6657608a66e8b28446671bf Mon Sep 17 00:00:00 2001 From: Andrej Mihajlov Date: Tue, 15 Dec 2020 14:21:39 +0100 Subject: [PATCH] WireGuardApp: Replace AnyObject with a concrete NSKeyValueObservation Signed-off-by: Andrej Mihajlov --- Sources/WireGuardApp/UI/iOS/View/TunnelListCell.swift | 4 ++-- 1 file 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)