Swift 3: NSNotification vs Notification

In Swift 3, what are the differences between Notification vs NSNotification?

In particular, in the Notification struct, there is a typeType of type NSNotification. How is ReferenceType used here?

public struct Notification : ReferenceConvertible, Equatable, Hashable {

    public typealias ReferenceType = NSNotification
    ...
}
+4
source share
1 answer

Notification- This is a wrapper around the structure NSNotification. You can bridge between asusing aswhat it does ReferenceConvertible.

0
source

Source: https://habr.com/ru/post/1661391/


All Articles