Skip to content

Commit 5a9c6f0

Browse files
committed
Fix NSNumber crash issue
1 parent e10d468 commit 5a9c6f0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/OpenSwiftUI/View/Image/AsyncImage.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -511,7 +511,7 @@ extension CGImageSource {
511511
properties,
512512
Unmanaged.passUnretained(kCGImagePropertyOrientation).toOpaque()
513513
),
514-
let orientation = orientationResult.assumingMemoryBound(to: NSNumber.self).pointee as? Int
514+
let orientation = unsafeBitCast(orientationResult, to: NSNumber.self) as? Int
515515
else {
516516
return nil
517517
}

0 commit comments

Comments
 (0)