Skip to content

Missing curly brackets for placeholder in blog post  #17

@RoyalSWiSH

Description

@RoyalSWiSH

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions