How do I add NotificationCenter.default.addObserve in SwiftUI?
When I tried adding observer I get below error
Argument of \'#sele
exchange this
self.NC.addObserver(self, selector: #selector(self.VPNDidChangeStatus), name: .NEVPNStatusDidChange, object: nil)
to
self.NC.addObserver(self, selector: #selector(VPNDidChangeStatus(_:)), name: .NEVPNStatusDidChange, object: nil)