AsyncImage icon indicating copy to clipboard operation
AsyncImage copied to clipboard

Missing curly brackets for placeholder in blog post

Open RoyalSWiSH opened this issue 2 years ago • 0 comments

Hi,

in your blog post

in listing

`struct ContentView: View { let url = URL(string: "https://image.tmdb.org/t/p/original/pThyQovXQrw2m0s9x82twj48Jq4.jpg")!

var body: some View {
    AsyncImage(
        url: url,
        placeholder: Text("Loading ...")
    ).aspectRatio(contentMode: .fit)
}

}`

it should read placeholder: {Text("Loading ...")}.

It is correct in the repository. Thanks a lot for that easy introduction to combine and loading images! I am working on a science app and this helped a lot!

Best, Sebastian

RoyalSWiSH avatar Apr 28 '22 16:04 RoyalSWiSH