1
Fork 0

Introduce image load delay to help list performance

This commit is contained in:
redstrate 2020-06-03 22:23:37 -04:00
parent 74c2924669
commit 88fdc3ae62

View file

@ -21,7 +21,8 @@ struct PostView: View {
VStack {
ForEach(post.media) { media in
VStack {
URLImage(URL(string: media.url.encodeUrl()!)!) { proxy in
URLImage(URL(string: media.url.encodeUrl()!)!,
delay: 0.25) { proxy in
proxy.image
.resizable()
.aspectRatio(contentMode: .fit)