Last active
January 1, 2021 15:28
-
-
Save dmytro-anokhin/1c846ff582a0cafe9b1ca49528ceae3c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
URLImage(url: url, | |
empty: { | |
EmptyView() | |
}, | |
inProgress: { progress in | |
Image(systemName: "photo") | |
}, | |
failure: { error, retry in | |
Text("Failed") | |
}, | |
content: { image, info in | |
image | |
.resizable() | |
.aspectRatio(contentMode: .fit) | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment