Skip to content

Commit 55a99b0

Browse files
committed
Update the Example with the latest dependency
1 parent 6117165 commit 55a99b0

File tree

4 files changed

+4
-8
lines changed

4 files changed

+4
-8
lines changed

Example/SDWebImageSwiftUIDemo-macOS/AppDelegate.swift

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,7 @@ class AppDelegate: NSObject, NSApplicationDelegate {
4545
options.insert(.avoidDecodeImage)
4646
} else {
4747
// WebImage supports bitmap rendering only
48-
context?[.svgPrefersBitmap] = true
49-
context?[.pdfPrefersBitmap] = true
48+
context?[.imageThumbnailPixelSize] = CGSize.zero
5049
}
5150
return SDWebImageOptionsResult(options: options, context: context)
5251
}

Example/SDWebImageSwiftUIDemo-tvOS/AppDelegate.swift

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,7 @@ class AppDelegate: UIResponder, UIApplicationDelegate {
5353
options.insert(.avoidDecodeImage)
5454
} else {
5555
// WebImage supports bitmap rendering only
56-
context?[.svgPrefersBitmap] = true
57-
context?[.pdfPrefersBitmap] = true
56+
context?[.imageThumbnailPixelSize] = CGSize.zero
5857
}
5958
return SDWebImageOptionsResult(options: options, context: context)
6059
}

Example/SDWebImageSwiftUIDemo-watchOS WatchKit Extension/ExtensionDelegate.swift

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,7 @@ class ExtensionDelegate: NSObject, WKExtensionDelegate {
2424
SDWebImageManager.shared.optionsProcessor = SDWebImageOptionsProcessor { url, options, context in
2525
var context = context
2626
// WebImage supports bitmap rendering only
27-
context?[.svgPrefersBitmap] = true
28-
context?[.pdfPrefersBitmap] = true
27+
context?[.imageThumbnailPixelSize] = CGSize.zero
2928
return SDWebImageOptionsResult(options: options, context: context)
3029
}
3130
}

Example/SDWebImageSwiftUIDemo/AppDelegate.swift

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,7 @@ class AppDelegate: UIResponder, UIApplicationDelegate {
3232
options.insert(.avoidDecodeImage)
3333
} else {
3434
// WebImage supports bitmap rendering only
35-
context?[.svgPrefersBitmap] = true
36-
context?[.pdfPrefersBitmap] = true
35+
context?[.imageThumbnailPixelSize] = CGSize.zero
3736
}
3837
return SDWebImageOptionsResult(options: options, context: context)
3938
}

0 commit comments

Comments
 (0)