diff --git a/Foundation/NSNotification.swift b/Foundation/NSNotification.swift index b848d6d443..b218860c33 100644 --- a/Foundation/NSNotification.swift +++ b/Foundation/NSNotification.swift @@ -188,7 +188,7 @@ open class NotificationCenter: NSObject { }) } - @available(*,obsoleted:4.0,renamed:"addObserver(forName:object:queue:using:)") + @available(*, unavailable, renamed: "addObserver(forName:object:queue:using:)") open func addObserver(forName name: NSNotification.Name?, object obj: Any?, queue: OperationQueue?, usingBlock block: @escaping (Notification) -> Void) -> NSObjectProtocol { return addObserver(forName: name, object: obj, queue: queue, using: block) }