Observer
@objc
protocol Observer
Simple implementation of Observer pattern
-
name of our notiication
Declaration
Swift
var notification: Notification.Name { get }
-
type of change
Declaration
Swift
var key: String { get }
-
associated value
Declaration
Swift
var value: String { get }
-
Begin observing
Declaration
Swift
func subscribe()
-
Stop observing
Declaration
Swift
func unsubscribe()