Skip to content

Instantly share code, notes, and snippets.

@dmytro-anokhin
Created January 1, 2021 15:49
Show Gist options
  • Save dmytro-anokhin/be7639350e0ad07fc57a0a7d9c159783 to your computer and use it in GitHub Desktop.
Save dmytro-anokhin/be7639350e0ad07fc57a0a7d9c159783 to your computer and use it in GitHub Desktop.
let options = URLImageOptions(identifier: "user-avatar")
URLImage(url: url,
options: options) { image in
image
.resizable()
.aspectRatio(contentMode: .fit)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment