@@ -24,7 +24,7 @@ import SwiftUI
2424/// is about half the size of the grey box.](AsyncImage-1)
2525///
2626/// 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
2828/// also use the `content` parameter to manipulate the loaded image.
2929/// For example, you can add a modifier to make the loaded image resizable:
3030///
@@ -42,17 +42,17 @@ import SwiftUI
4242/// right, and an arrow pointing from the first to the second.](AsyncImage-2)
4343///
4444/// > 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 `.
4646/// Instead, apply them to the ``Image`` instance that your `content`
4747/// closure gets when defining the view's appearance.
4848///
4949/// 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
5151/// `content` closure that receives an ``AsyncImagePhase`` to indicate
5252/// the state of the loading operation. Return a view that's appropriate
5353/// for the current phase:
5454///
55- /// AsyncImage (url: URL(string: "https://example.com/icon.png")) { phase in
55+ /// CachedAsyncImage (url: URL(string: "https://example.com/icon.png")) { phase in
5656/// if let image = phase.image {
5757/// image // Displays the loaded image.
5858/// } else if phase.error != nil {
0 commit comments