---
title: "SDWebImage 5.0.0 Breaking Changes on CocoaPods | Since.dev"
description: "What each SDWebImage release removed, renamed or changed: 82 breaking changes in 6 versions on CocoaPods, each with its source."
canonical_url: https://since.dev/packages/cocoapods/SDWebImage
last_updated: 2026-12-04
---

# SDWebImage breaking changes

SDWebImage 5.0.0 is its newest release with breaking changes, 57 of them. The first: SDWebImage 5.0.0 requires iOS 8.0 or later. Every breaking API change we have recorded in SDWebImage on CocoaPods: 82 breaking changes in 6 versions. Below, its 6 versions with breaking changes, newest first, removals and renames first, each with its source.

Updated December 4, 2026

Latest version `5.21.7`, released February 26, 2026. [Source repository](https://github.com/SDWebImage/SDWebImage)

Its 5.0.0 release requires iOS 8.0 or later. [iOS end of life dates](https://since.dev/calendar/ios.md).

- From [3.0](#v-3-0) to [5.0.0](#v-5-0-0): 81 breaking changes in 5 versions.

## SDWebImage 5.0.0 breaking changes

SDWebImage 5.0.0: 57 breaking changes.

- **Removed**  

The 5.0.0 release supports iOS 8.0+, tvOS 9.0+, watchOS 2.0+ and macOS 10.10+. [github.com](https://github.com/SDWebImage/SDWebImage/releases/tag/5.0.0)
- **Removed** `SDCGColorSpaceGetDeviceRGB`  

SDCGColorSpaceGetDeviceRGB moved to helper in SDWebImage 5.0.0 [github.com](https://github.com/SDWebImage/SDWebImage/wiki/5.0-Migration-guide)
- **Removed** `SDImageCache.addReadOnlyCachePath:`  

addReadOnlyCachePath removed from SDImageCache in SDWebImage 5.0.0 [github.com](https://github.com/SDWebImage/SDWebImage/wiki/5.0-Migration-guide)
- **Removed** `SDImageCache.cachePathForKey:inPath:`  

cachePathForKey:inPath: removed in SDWebImage 5.0.0 [github.com](https://github.com/SDWebImage/SDWebImage/wiki/5.0-Migration-guide)
- **Removed** `SDImageCache.defaultCachePathForKey:`  

defaultCachePathForKey removed from SDImageCache in SDWebImage 5.0.0 [github.com](https://github.com/SDWebImage/SDWebImage/wiki/5.0-Migration-guide)
- **Removed** `SDImageCache.makeDiskCachePath:`  

makeDiskCachePath removed from SDImageCache in SDWebImage 5.0.0 [github.com](https://github.com/SDWebImage/SDWebImage/wiki/5.0-Migration-guide)
- **Removed** `SDImageCache.maxMemoryCost`  

Memory limits moved to SDImageCacheConfig in SDWebImage 5.0.0 [github.com](https://github.com/SDWebImage/SDWebImage/wiki/5.0-Migration-guide)
- **Removed** `SDImageCacheConfig.shouldDecompressImages`  

shouldDecompressImages removed from cache config in SDWebImage 5.0.0 [github.com](https://github.com/SDWebImage/SDWebImage/wiki/5.0-Migration-guide)
- **Removed** `SDWebImageCacheMemoryOnly`  

SDWebImageCacheMemoryOnly option removed in SDWebImage 5.0.0 [github.com](https://github.com/SDWebImage/SDWebImage/wiki/5.0-Migration-guide)
- **Removed** `SDWebImageDownloader.cancel:`  

cancel: removed from downloader in SDWebImage 5.0.0 [github.com](https://github.com/SDWebImage/SDWebImage/wiki/5.0-Migration-guide)
- **Removed** `SDWebImageDownloader.createNewSessionWithConfiguration:`  

createNewSessionWithConfiguration: removed in SDWebImage 5.0.0 [github.com](https://github.com/SDWebImage/SDWebImage/wiki/5.0-Migration-guide)
- **Removed** `SDWebImageDownloader.headersFilter`  

headersFilter removed from downloader in SDWebImage 5.0.0 [github.com](https://github.com/SDWebImage/SDWebImage/wiki/5.0-Migration-guide)
- **Removed** `SDWebImageDownloader.initWithSessionConfiguration:`  

initWithSessionConfiguration: removed in SDWebImage 5.0.0 [github.com](https://github.com/SDWebImage/SDWebImage/wiki/5.0-Migration-guide)
- **Removed** `SDWebImageDownloaderOperation.expectedSize`  

expectedSize removed from downloader operation in SDWebImage 5.0.0 [github.com](https://github.com/SDWebImage/SDWebImage/wiki/5.0-Migration-guide)
- **Removed** `SDWebImageDownloaderOperation.shouldUseCredentialStorage`  

shouldUseCredentialStorage property removed in SDWebImage 5.0.0 [github.com](https://github.com/SDWebImage/SDWebImage/wiki/5.0-Migration-guide)
- **Removed** `SDWebImageInternalSetImageGroupKey`  

SDWebImageInternalSetImageGroupKey removed in SDWebImage 5.0.0 [github.com](https://github.com/SDWebImage/SDWebImage/wiki/5.0-Migration-guide)
- **Removed** `SDWebImageManager.cachedImageExistsForURL:completion`  

cachedImageExistsForURL:completion removed in SDWebImage 5.0.0 [github.com](https://github.com/SDWebImage/SDWebImage/wiki/5.0-Migration-guide)
- **Removed** `SDWebImageManager.diskImageExistsForURL:completion:`  

diskImageExistsForURL:completion: removed in SDWebImage 5.0.0 [github.com](https://github.com/SDWebImage/SDWebImage/wiki/5.0-Migration-guide)
- **Removed** `SDWebImageManager.saveImageToCache:forURL:`  

saveImageToCache:forURL: removed in SDWebImage 5.0.0 [github.com](https://github.com/SDWebImage/SDWebImage/wiki/5.0-Migration-guide)
- **Removed** `SDWebImageManagerDelegate.imageManager:transformDownloadedImage:forKey:`  

Image transform delegate method removed in SDWebImage 5.0.0 [github.com](https://github.com/SDWebImage/SDWebImage/wiki/5.0-Migration-guide)
- **Removed** `SDWebImageQueryDataWhenInMemory`  

SDWebImageQueryDataWhenInMemory option removed in SDWebImage 5.0.0 [github.com](https://github.com/SDWebImage/SDWebImage/wiki/5.0-Migration-guide)
- **Removed** `SDWebImageQueryDiskSync`  

SDWebImageQueryDiskSync option removed in SDWebImage 5.0.0 [github.com](https://github.com/SDWebImage/SDWebImage/wiki/5.0-Migration-guide)
- **Removed** `UIImage.sd_webpLoopCount`  

sd_webpLoopCount removed in SDWebImage 5.0.0 [github.com](https://github.com/SDWebImage/SDWebImage/wiki/5.0-Migration-guide)
- **Removed** `UIImageView.sd_cancelCurrentAnimationImagesLoad`  

sd_cancelCurrentAnimationImagesLoad removed in SDWebImage 5.0.0 [github.com](https://github.com/SDWebImage/SDWebImage/wiki/5.0-Migration-guide)
- **Removed** `UIImageView.sd_setAnimationImagesWithURLs:`  

sd_setAnimationImagesWithURLs removed in SDWebImage 5.0.0 [github.com](https://github.com/SDWebImage/SDWebImage/wiki/5.0-Migration-guide)
- **Removed** `UIView.sd_setShowActivityIndicatorView`  

Activity indicator setter removed in SDWebImage 5.0.0 [github.com](https://github.com/SDWebImage/SDWebImage/wiki/5.0-Migration-guide)
- **Renamed** `SDCacheQueryCompletedBlock`  

Cache query block type renamed in SDWebImage 5.0.0 [github.com](https://github.com/SDWebImage/SDWebImage/wiki/5.0-Migration-guide)
- **Renamed** `SDImageCache.getDiskCount`  

getDiskCount renamed to totalDiskCount in SDWebImage 5.0.0 [github.com](https://github.com/SDWebImage/SDWebImage/wiki/5.0-Migration-guide)
- **Renamed** `SDImageCache.getSize`  

getSize renamed to totalDiskSize in SDWebImage 5.0.0 [github.com](https://github.com/SDWebImage/SDWebImage/wiki/5.0-Migration-guide)
- **Renamed** `SDImageCacheConfig.maxCacheAge`  

maxCacheAge renamed to maxDiskAge in SDWebImage 5.0.0 [github.com](https://github.com/SDWebImage/SDWebImage/wiki/5.0-Migration-guide)
- **Renamed** `SDImageCacheConfig.maxCacheSize`  

maxCacheSize renamed to maxDiskSize in SDWebImage 5.0.0 [github.com](https://github.com/SDWebImage/SDWebImage/wiki/5.0-Migration-guide)
- **Renamed** `SDWebImageCalculateSizeBlock`  

Calculate size block type renamed in SDWebImage 5.0.0 [github.com](https://github.com/SDWebImage/SDWebImage/wiki/5.0-Migration-guide)
- **Renamed** `SDWebImageCheckCacheCompletionBlock`  

Cache check block type renamed in SDWebImage 5.0.0 [github.com](https://github.com/SDWebImage/SDWebImage/wiki/5.0-Migration-guide)
- **Renamed** `SDWebImageCombinedOperation.initWithCache:downloader:`  

initWithCache:downloader renamed to initWithCache:loader: in SDWebImage 5.0.0 [github.com](https://github.com/SDWebImage/SDWebImage/wiki/5.0-Migration-guide)
- **Renamed** `SDWebImageDownloader.maxConcurrentDownloads`  

maxConcurrentDownloads moved to downloader config in SDWebImage 5.0.0 [github.com](https://github.com/SDWebImage/SDWebImage/wiki/5.0-Migration-guide)
- **Renamed** `SDWebImageDownloader.setSuspended`  

Swift setSuspended changed to isSuspended property in SDWebImage 5.0.0 [github.com](https://github.com/SDWebImage/SDWebImage/wiki/5.0-Migration-guide)
- **Renamed** `SDWebImageDownloadOperationInterface`  

Download operation protocol renamed in SDWebImage 5.0.0 [github.com](https://github.com/SDWebImage/SDWebImage/wiki/5.0-Migration-guide)
- **Renamed** `SDWebImageExternalCustomManagerKey`  

Custom manager constant renamed in SDWebImage 5.0.0 [github.com](https://github.com/SDWebImage/SDWebImage/wiki/5.0-Migration-guide)
- **Renamed** `SDWebImageManager.imageDownloader`  

The property type is now id\<SDImageLoader>. [github.com](https://github.com/SDWebImage/SDWebImage/wiki/5.0-Migration-guide)
- **Renamed** `SDWebImageManager.isRunning`  

Swift isRunning() changed to property in SDWebImage 5.0.0 [github.com](https://github.com/SDWebImage/SDWebImage/wiki/5.0-Migration-guide)
- **Renamed** `SDWebImagePrefetcher.maxConcurrentDownloads`  

Prefetcher concurrency property renamed in SDWebImage 5.0.0 [github.com](https://github.com/SDWebImage/SDWebImage/wiki/5.0-Migration-guide)
- **Renamed** `SDWebImagePrefetcher.prefetcherQueue`  

prefetcherQueue renamed to delegateQueue in SDWebImage 5.0.0 [github.com](https://github.com/SDWebImage/SDWebImage/wiki/5.0-Migration-guide)
- **Renamed** `SDWebImageProgressiveDownload`  

SDWebImageProgressiveDownload renamed in SDWebImage 5.0.0 [github.com](https://github.com/SDWebImage/SDWebImage/wiki/5.0-Migration-guide)
- **Renamed** `UIButton.sd_currentImageURL`  

Swift sd_currentImageURL() renamed to property in SDWebImage 5.0.0 [github.com](https://github.com/SDWebImage/SDWebImage/wiki/5.0-Migration-guide)
- **Renamed** `UIImage.decodedImageWithImage:`  

decodedImageWithImage renamed in SDWebImage 5.0.0 [github.com](https://github.com/SDWebImage/SDWebImage/wiki/5.0-Migration-guide)
- **Renamed** `UIImage.isGIF`  

isGIF renamed to sd_isAnimated in SDWebImage 5.0.0 [github.com](https://github.com/SDWebImage/SDWebImage/wiki/5.0-Migration-guide)
- **Renamed** `UIImage.sd_animatedGIFWithData`  

sd_animatedGIFWithData renamed in SDWebImage 5.0.0 [github.com](https://github.com/SDWebImage/SDWebImage/wiki/5.0-Migration-guide)
- **Renamed** `UIView.sd_imageURL`  

Swift sd_imageURL() renamed to property in SDWebImage 5.0.0 [github.com](https://github.com/SDWebImage/SDWebImage/wiki/5.0-Migration-guide)
- **Behavior changed** `SDImageCache`  

The default cache folder moved; 4.x data is migrated automatically when the shared cache initializes. Custom-namespace caches must migrate manually. [github.com](https://github.com/SDWebImage/SDWebImage/wiki/5.0-Migration-guide)
- **Behavior changed** `SDImageCacheConfig.maxMemoryCost`  

The cost function changed from pixel count to total bytes; multiply old pixel-count limits by 4. [github.com](https://github.com/SDWebImage/SDWebImage/wiki/5.0-Migration-guide)

And 7 more in this version. [Sign up to see every change](https://app.since.dev/login?mode=signup&src=package-page)

## SDWebImage 5.0.0-beta3 breaking changes

SDWebImage 5.0.0-beta3: 1 breaking change.

- **Removed** `sd_setAnimationImagesWithURLs`  

Removed in 5.0.0-beta3 because it caused ambiguity. Stop using it. [github.com](https://github.com/SDWebImage/SDWebImage/releases/tag/5.0.0-beta3)

## SDWebImage 5.0.0-beta2 breaking changes

SDWebImage 5.0.0-beta2: 1 breaking change.

- **Renamed** `sd_UTTypeFromSDImageFormat`  

The function was renamed to sd_UTTypeFromImageFormat. Update calls to the new name. [github.com](https://github.com/SDWebImage/SDWebImage/releases/tag/5.0.0-beta2)

## SDWebImage 5.0.0-beta breaking changes

SDWebImage 5.0.0-beta: 8 breaking changes.

- **Removed** `UIImage.sd_imageLoopCount`  

sd_imageLoopCount was moved to the UIImage+Metadata category and the outdated method was removed. Import UIImage+Metadata to keep using it. [github.com](https://github.com/SDWebImage/SDWebImage/releases/tag/5.0.0-beta)
- **Renamed** `SDWebImageDownloader`  

Downloader configuration was separated into a dedicated SDWebImageDownloaderConfig object. Move config settings there. [github.com](https://github.com/SDWebImage/SDWebImage/releases/tag/5.0.0-beta)
- **Renamed** `UIImage.isGIF`  

UIImage isGIF was renamed to sd_isAnimated and moved to the UIImage+Metadata category. Update calls to use the new name. [github.com](https://github.com/SDWebImage/SDWebImage/releases/tag/5.0.0-beta)
- **Behavior changed**  

The new minimum requirements are iOS 8.0+ and macOS 10.10+, built with Xcode 9 or later. [github.com](https://github.com/SDWebImage/SDWebImage/releases/tag/5.0.0-beta)
- **Behavior changed** `SDImageCache`  

The disk cache uses NSData writeToFile:options:error instead of NSFileManager createFileAtPath:contents:attributes. Writing options can be set in SDImageCacheConfig. [github.com](https://github.com/SDWebImage/SDWebImage/releases/tag/5.0.0-beta)
- **Behavior changed** `SDWebImageManager.loadImageWithURL:options:progress:completed:`  

The completed parameter of loadImageWithURL is now required to be non-null. Pass a completion block every time. [github.com](https://github.com/SDWebImage/SDWebImage/releases/tag/5.0.0-beta)
- **Configuration changed** `SDImageCache.maxMemoryCost`  

maxMemoryCost moved to SDImageCacheConfig. Set limits through the config object instead. [github.com](https://github.com/SDWebImage/SDWebImage/releases/tag/5.0.0-beta)
- **Configuration changed** `SDImageCache.maxMemoryCountLimit`  

maxMemoryCountLimit moved to SDImageCacheConfig. Set it through the config object instead. [github.com](https://github.com/SDWebImage/SDWebImage/releases/tag/5.0.0-beta)

## SDWebImage 4.0.0-beta breaking changes

SDWebImage 4.0.0-beta: 14 breaking changes.

- **Removed**  

Methods kept for backwards compatibility in previous versions were removed. Stop calling any deprecated method before upgrading. [github.com](https://github.com/SDWebImage/SDWebImage/releases/tag/4.0.0-beta)
- **Removed**  

Build targets SDWebImage+MKAnnotation, SDWebImage+WebP and SDWebImageFramework were deleted; use the new targets instead. [github.com](https://github.com/SDWebImage/SDWebImage/releases/tag/4.0.0-beta)
- **Removed** `dispatch_main_sync_safe`  

The dispatch_main_sync_safe macro was removed because it could be misused. [github.com](https://github.com/SDWebImage/SDWebImage/releases/tag/4.0.0-beta)
- **Renamed** `addActivityIndicator`  

Activity indicator methods now use the sd\_ prefix. [github.com](https://github.com/SDWebImage/SDWebImage/releases/tag/4.0.0-beta)
- **Renamed** `removeActivityIndicator`  

Activity indicator methods now use the sd\_ prefix. [github.com](https://github.com/SDWebImage/SDWebImage/releases/tag/4.0.0-beta)
- **Renamed** `SDWebImageCompletionBlock`  

Use SDExternalCompletionBlock in place of SDWebImageCompletionBlock. [github.com](https://github.com/SDWebImage/SDWebImage/releases/tag/4.0.0-beta)
- **Renamed** `SDWebImageCompletionWithFinishedBlock`  

Use SDInternalCompletionBlock, and update blocks to include an NSData \* parameter. [github.com](https://github.com/SDWebImage/SDWebImage/releases/tag/4.0.0-beta)
- **Renamed** `SDWebImageQueryCompletedBlock`  

Use SDCacheQueryCompletedBlock, and update blocks to include an NSData \* parameter. [github.com](https://github.com/SDWebImage/SDWebImage/releases/tag/4.0.0-beta)
- **Renamed** `setIndicatorStyle:`  

Activity indicator methods now use the sd\_ prefix. [github.com](https://github.com/SDWebImage/SDWebImage/releases/tag/4.0.0-beta)
- **Renamed** `setShowActivityIndicatorView:`  

Activity indicator methods now use the sd\_ prefix. [github.com](https://github.com/SDWebImage/SDWebImage/releases/tag/4.0.0-beta)

And 4 more in this version. [Sign up to see every change](https://app.since.dev/login?mode=signup&src=package-page)

## SDWebImage 3.0 breaking changes

SDWebImage 3.0: 1 breaking change.

- **Removed**  

The library no longer supports iOS 3 and iOS 4. Apps that still target those versions must stay on an older release or raise their deployment target. [github.com](https://github.com/SDWebImage/SDWebImage/releases/tag/3.0)

## Related packages

- [github.com/sdwebimage/sdwebimage](https://since.dev/packages/swift/github.com/sdwebimage/sdwebimage.md):  on Swift Package Index

## Check your code

These are the changes. To see which of them reach your code, [scan a public repository](https://since.dev/scan.md), or have your coding agent call `check_code` with your manifest or lockfile over [MCP](https://since.dev/docs.md#mcp). [The API](https://since.dev/docs.md#api) reads every change in every version. A fix pull request opens for the changes that reach a connected repository. Nothing merges or deploys.

## Put your code on continuous maintenance.

Scan a public repository now, or give your agent one line.

[Scan a repository](https://since.dev/scan.md). Any public GitHub repository. No sign-in.

### Tell your agent what changed since it was trained.

`claude mcp add --transport http since https://api.since.dev/mcp`

[Get an API key](https://app.since.dev/login?mode=signup)

Codex, Cursor and any MCP client use https://api.since.dev/mcp.

---

Every page on this site as Markdown: https://since.dev/sitemap.md. For agents: https://since.dev/llms.txt.
