@@ -45,7 +45,7 @@ public final class XCPlaygroundPage {
45
45
/// - note: This function has been deprecated.
46
46
@available ( * , deprecated) public func captureValue< T> ( value: T , withIdentifier identifier: String ) {
47
47
if let value = value as? AnyObject {
48
- NotificationCenter . default. post ( name: " XCPCaptureValue " as NSString 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: [ " value " : value, " identifier " : identifier as AnyObject ] )
49
49
}
50
50
}
51
51
@@ -62,7 +62,7 @@ public final class XCPlaygroundPage {
62
62
@available ( * , deprecated, message: " Use 'PlaygroundPage.current.needsIndefiniteExecution' from the 'PlaygroundSupport' module instead " )
63
63
public var needsIndefiniteExecution : Bool = false {
64
64
didSet {
65
- NotificationCenter . default. post ( name: " XCPlaygroundPageNeedsIndefiniteExecutionDidChangeNotification " as NSString 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: [ " XCPlaygroundPageNeedsIndefiniteExecution " : needsIndefiniteExecution as AnyObject ] )
66
66
}
67
67
}
68
68
@@ -102,9 +102,9 @@ public final class XCPlaygroundPage {
102
102
if let liveView = liveView {
103
103
switch liveView. playgroundLiveViewRepresentation ( ) {
104
104
case . ViewController( let viewController) :
105
- userInfo = [ AnyHashable ( " XCPlaygroundPageLiveViewController " ) : viewController]
105
+ userInfo = [ " XCPlaygroundPageLiveViewController " : viewController]
106
106
case . View( let view) :
107
- userInfo = [ AnyHashable ( " XCPlaygroundPageLiveView " ) : view]
107
+ userInfo = [ " XCPlaygroundPageLiveView " : view]
108
108
}
109
109
}
110
110
else {
0 commit comments