Skip to content

Commit 0b59aae

Browse files
committed
Update @available annotation
1 parent cfe12da commit 0b59aae

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Foundation/NSNotification.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ open class NotificationCenter: NSObject {
188188
})
189189
}
190190

191-
@available(swift, obsoleted: 4.0)
191+
@available(*,obsoleted:4.0,renamed:"addObserver(forName:object:queue:using:)")
192192
open func addObserver(forName name: Notification.Name?, object obj: Any?, queue: OperationQueue?, usingBlock block: @escaping (Notification) -> Void) -> NSObjectProtocol {
193193
return addObserver(forName: name, object: obj, queue: queue, using: block)
194194
}

0 commit comments

Comments
 (0)