Properly fit the post media in the post view
This commit is contained in:
parent
e93af7503a
commit
74c2924669
1 changed files with 5 additions and 1 deletions
|
@ -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)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Reference in a new issue