1
Fork 0

Properly fit the post media in the post view

This commit is contained in:
redstrate 2020-06-03 22:11:15 -04:00
parent e93af7503a
commit 74c2924669

View file

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