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 {
|
VStack {
|
||||||
ForEach(post.media) { media in
|
ForEach(post.media) { media in
|
||||||
VStack {
|
VStack {
|
||||||
URLImage(URL(string: media.url.encodeUrl()!)!) { proxy in
|
URLImage(URL(string: media.url.encodeUrl()!)!,
|
||||||
|
delay: 0.25) { proxy in
|
||||||
proxy.image
|
proxy.image
|
||||||
.resizable()
|
.resizable()
|
||||||
.aspectRatio(contentMode: .fit)
|
.aspectRatio(contentMode: .fit)
|
||||||
|
|
Reference in a new issue