@@ -45,7 +45,7 @@ public final class XCPlaygroundPage {
4545 /// - note: This function has been deprecated.
4646 @available ( * , deprecated) public func captureValue< T> ( value: T , withIdentifier identifier: String ) {
4747 if let value = value as? AnyObject {
48- NotificationCenter . default. post ( name: " XCPCaptureValue " as NSNotification . Name , object: self , userInfo: [ AnyHashable ( " value " ) : value, AnyHashable ( " identifier " ) : identifier as AnyObject ] )
48+ NotificationCenter . default. post ( name: " XCPCaptureValue " as NSString as NSNotification . Name , object: self , userInfo: [ AnyHashable ( " value " ) : value, AnyHashable ( " identifier " ) : identifier as AnyObject ] )
4949 }
5050 }
5151
@@ -62,7 +62,7 @@ public final class XCPlaygroundPage {
6262 @available ( * , deprecated, message: " Use 'PlaygroundPage.current.needsIndefiniteExecution' from the 'PlaygroundSupport' module instead " )
6363 public var needsIndefiniteExecution : Bool = false {
6464 didSet {
65- NotificationCenter . default. post ( name: " XCPlaygroundPageNeedsIndefiniteExecutionDidChangeNotification " as NSNotification . Name , object: self , userInfo: [ AnyHashable ( " XCPlaygroundPageNeedsIndefiniteExecution " ) : needsIndefiniteExecution as AnyObject ] )
65+ NotificationCenter . default. post ( name: " XCPlaygroundPageNeedsIndefiniteExecutionDidChangeNotification " as NSString as NSNotification . Name , object: self , userInfo: [ AnyHashable ( " XCPlaygroundPageNeedsIndefiniteExecution " ) : needsIndefiniteExecution as AnyObject ] )
6666 }
6767 }
6868
@@ -72,7 +72,7 @@ public final class XCPlaygroundPage {
7272 @available ( * , deprecated, message: " Use 'PlaygroundPage.current.finishExecution()' from the 'PlaygroundSupport' module instead " )
7373 public func finishExecution( ) -> Never {
7474 // Send a message to Xcode requesting that we be killed.
75- NotificationCenter . default. post ( name: " XCPlaygroundPageFinishExecutionNotification " as NSNotification . Name , object: self , userInfo: nil )
75+ NotificationCenter . default. post ( name: " XCPlaygroundPageFinishExecutionNotification " as NSString as NSNotification . Name , object: self , userInfo: nil )
7676
7777 // Sleep for a while to let Xcode kill us.
7878 for _ in 1 ... 10 {
@@ -116,7 +116,7 @@ public final class XCPlaygroundPage {
116116 userInfo = [ : ]
117117 }
118118
119- NotificationCenter . default. post ( name: " XCPlaygroundPageLiveViewDidChangeNotification " as NSNotification . Name , object: self , userInfo: userInfo)
119+ NotificationCenter . default. post ( name: " XCPlaygroundPageLiveViewDidChangeNotification " as NSString as NSNotification . Name , object: self , userInfo: userInfo)
120120 }
121121 }
122122}
0 commit comments