Skip to content

Commit 1553cde

Browse files
committed
Use the right key for the image thumbnail dictionaries in the URL
resources struct. Fixes rdar://27556178
1 parent a37fa88 commit 1553cde

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

stdlib/public/SDK/AppKit/AppKit_FoundationExtensions.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,8 +75,8 @@ public extension URLResourceValues {
7575

7676
/// Returns a dictionary of NSImage objects keyed by size.
7777
@available(OSX 10.10, *)
78-
public var thumbnailDictionary : [URLThumbnailSizeKey : NSImage]? {
79-
return allValues[URLResourceKey.thumbnailDictionaryKey] as? [URLThumbnailSizeKey : NSImage]
78+
public var thumbnailDictionary : [URLThumbnailDictionaryItem : NSImage]? {
79+
return allValues[URLResourceKey.thumbnailDictionaryKey] as? [URLThumbnailDictionaryItem : NSImage]
8080
}
8181

8282
}

stdlib/public/SDK/UIKit/UIKit_FoundationExtensions.swift.gyb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,8 +80,8 @@ public extension URLResourceValues {
8080

8181
/// Returns a dictionary of UIImage objects keyed by size.
8282
@available(iOS 8.0, *)
83-
public var thumbnailDictionary : [URLThumbnailSizeKey : UIImage]? {
84-
return allValues[URLResourceKey.thumbnailDictionaryKey] as? [URLThumbnailSizeKey : UIImage]
83+
public var thumbnailDictionary : [URLThumbnailDictionaryItem : UIImage]? {
84+
return allValues[URLResourceKey.thumbnailDictionaryKey] as? [URLThumbnailDictionaryItem : UIImage]
8585
}
8686
}
8787

0 commit comments

Comments
 (0)