We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
as? _NSObjectRepresentable
1 parent c52bd91 commit 877a052Copy full SHA for 877a052
Foundation/NSSwiftRuntime.swift
@@ -257,6 +257,16 @@ internal func _NSObjectRepresentableBridge(value: Any) -> NSObject {
257
return str._nsObjectRepresentation()
258
} else if let obj = value as? NSObject {
259
return obj
260
+ } else if let obj = value as? Int {
261
+ return obj._bridgeToObject()
262
+ } else if let obj = value as? UInt {
263
264
+ } else if let obj = value as? Float {
265
266
+ } else if let obj = value as? Double {
267
268
+ } else if let obj = value as? Bool {
269
270
}
271
fatalError("Unable to convert value of type \(value.dynamicType)")
272
0 commit comments