Skip to content

Commit 8e91008

Browse files
authored
Improve ThreeMigrationGuide.md (#1878)
* Add `ASImageCacherCompletion` breaking API change. * Remove unnecessary trailing pounds.
1 parent 6a3a247 commit 8e91008

File tree

1 file changed

+22
-2
lines changed

1 file changed

+22
-2
lines changed

ThreeMigrationGuide.md

Lines changed: 22 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,23 @@
1-
### Texture 3.0 Migration Guide ###
1+
## Texture 3.0 Migration Guide
22

3-
Got a tip for upgrading? Please open a PR to this document!
3+
Got a tip for upgrading? Please open a PR to this document!
4+
5+
6+
### Breaking API Changes
7+
8+
`ASImageCacherCompletion` typedef has a new parameter: `ASImageCacheType cacheType`. Example:
9+
10+
11+
```swift
12+
ASPINRemoteImageDownloader.shared().cachedImage(with: url, callbackQueue: .main) { result in
13+
14+
}
15+
```
16+
17+
Becomes
18+
19+
```swift
20+
ASPINRemoteImageDownloader.shared().cachedImage(with: url, callbackQueue: .main) { result, cacheType in
21+
22+
}
23+
```

0 commit comments

Comments
 (0)