Introduce image load delay to help list performance
This commit is contained in:
parent
74c2924669
commit
88fdc3ae62
1 changed files with 2 additions and 1 deletions
|
@ -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)
|
||||
|
|
Reference in a new issue