WireGuardApp: Replace AnyObject with a concrete NSKeyValueObservation

Signed-off-by: Andrej Mihajlov <and@mullvad.net>
This commit is contained in:
Andrej Mihajlov authored and Jason A. Donenfeld committed 2020-12-15 15:56:22 +01:00
1 parent 9a483a46fa
commit a786f5df60
1 file changed
+2 -2
@@ -41,8 +41,8 @@ class TunnelListCell: UITableViewCell {
let statusSwitch = UISwitch() let statusSwitch = UISwitch()
private var statusObservationToken: AnyObject? private var statusObservationToken: NSKeyValueObservation?
private var nameObservationToken: AnyObject? private var nameObservationToken: NSKeyValueObservation?
override init(style: UITableViewCell.CellStyle, reuseIdentifier: String?) { override init(style: UITableViewCell.CellStyle, reuseIdentifier: String?) {
super.init(style: style, reuseIdentifier: reuseIdentifier) super.init(style: style, reuseIdentifier: reuseIdentifier)