WireGuardApp: Replace AnyObject with a concrete NSKeyValueObservation
Signed-off-by: Andrej Mihajlov <and@mullvad.net>
This commit is contained in:
parent
9a483a46fa
commit
a786f5df60
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue