Skip to content
This repository has been archived by the owner on May 3, 2023. It is now read-only.

Commit

Permalink
Improve ThreeMigrationGuide.md (TextureGroup#1878)
Browse files Browse the repository at this point in the history
* Add `ASImageCacherCompletion` breaking API change.

* Remove unnecessary trailing pounds.
  • Loading branch information
rogerluan authored and piotrdebosz committed Mar 1, 2021
1 parent f0817fc commit 2c7ed7c
Showing 1 changed file with 22 additions and 2 deletions.
24 changes: 22 additions & 2 deletions ThreeMigrationGuide.md
Original file line number Diff line number Diff line change
@@ -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!
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
}
```

0 comments on commit 2c7ed7c

Please sign in to comment.