@@ -24,7 +24,7 @@ import SwiftUI
24
24
/// is about half the size of the grey box.](AsyncImage-1)
25
25
///
26
26
/// You can specify a custom placeholder using
27
- /// ``init(url:scale:content:placeholder:)``. With this initializer, you can
27
+ /// ``init(url:urlCache: scale:content:placeholder:)``. With this initializer, you can
28
28
/// also use the `content` parameter to manipulate the loaded image.
29
29
/// For example, you can add a modifier to make the loaded image resizable:
30
30
///
@@ -42,17 +42,17 @@ import SwiftUI
42
42
/// right, and an arrow pointing from the first to the second.](AsyncImage-2)
43
43
///
44
44
/// > Important: You can't apply image-specific modifiers, like
45
- /// ``Image/resizable(capInsets:resizingMode:)``, directly to an `AsyncImage `.
45
+ /// ``Image/resizable(capInsets:resizingMode:)``, directly to a `CachedAsyncImage `.
46
46
/// Instead, apply them to the ``Image`` instance that your `content`
47
47
/// closure gets when defining the view's appearance.
48
48
///
49
49
/// To gain more control over the loading process, use the
50
- /// ``init(url:scale:transaction:content:)`` initializer, which takes a
50
+ /// ``init(url:urlCache: scale:transaction:content:)`` initializer, which takes a
51
51
/// `content` closure that receives an ``AsyncImagePhase`` to indicate
52
52
/// the state of the loading operation. Return a view that's appropriate
53
53
/// for the current phase:
54
54
///
55
- /// AsyncImage (url: URL(string: "https://example.com/icon.png")) { phase in
55
+ /// CachedAsyncImage (url: URL(string: "https://example.com/icon.png")) { phase in
56
56
/// if let image = phase.image {
57
57
/// image // Displays the loaded image.
58
58
/// } else if phase.error != nil {
0 commit comments