File tree Expand file tree Collapse file tree 1 file changed +14
-0
lines changed
stdlib/public/SDK/Foundation Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -144,6 +144,13 @@ extension NSKeyedUnarchiver {
144
144
return result as AnyObject ?
145
145
}
146
146
147
+ @nonobjc
148
+ @available ( swift, obsoleted: 4 )
149
+ @available ( OSX 10 . 11 , iOS 9 . 0 , * )
150
+ public class func unarchiveTopLevelObjectWithData( _ data: Data ) throws -> AnyObject ? {
151
+ return try self . unarchiveTopLevelObjectWithData ( data as NSData )
152
+ }
153
+
147
154
@nonobjc
148
155
@available ( swift, introduced: 4 )
149
156
@available ( OSX 10 . 11 , iOS 9 . 0 , * )
@@ -153,6 +160,13 @@ extension NSKeyedUnarchiver {
153
160
try resolveError ( error)
154
161
return result
155
162
}
163
+
164
+ @nonobjc
165
+ @available ( swift, introduced: 4 )
166
+ @available ( OSX 10 . 11 , iOS 9 . 0 , * )
167
+ public class func unarchiveTopLevelObjectWithData( _ data: Data ) throws -> Any ? {
168
+ return try self . unarchiveTopLevelObjectWithData ( data as NSData )
169
+ }
156
170
}
157
171
158
172
You can’t perform that action at this time.
0 commit comments