diff --git a/ThreeMigrationGuide.md b/ThreeMigrationGuide.md index afd30d22a..eafc3e572 100644 --- a/ThreeMigrationGuide.md +++ b/ThreeMigrationGuide.md @@ -1,3 +1,23 @@ -### Texture 3.0 Migration Guide ### +## Texture 3.0 Migration Guide -Got a tip for upgrading? Please open a PR to this document! \ No newline at end of file +Got a tip for upgrading? Please open a PR to this document! + + +### Breaking API Changes + +`ASImageCacherCompletion` typedef has a new parameter: `ASImageCacheType cacheType`. Example: + + +```swift +ASPINRemoteImageDownloader.shared().cachedImage(with: url, callbackQueue: .main) { result in + … +} +``` + +Becomes + +```swift +ASPINRemoteImageDownloader.shared().cachedImage(with: url, callbackQueue: .main) { result, cacheType in + … +} +```