Skip to content

Commit

Permalink
Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Dimillian committed Jul 10, 2020
1 parent 87079cc commit dae3d98
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 deletions.
1 change: 1 addition & 0 deletions .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
github: [dimillian]
14 changes: 10 additions & 4 deletions RedditOs/Features/Post/PostDetailContent.swift
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,16 @@ struct PostDetailContent: View {
}
} else if let url = listing.url, let realURL = URL(string: url) {
if realURL.pathExtension == "jpg" || realURL.pathExtension == "png" {
WebImage(url: realURL)
.resizable()
.aspectRatio(contentMode: .fit)
.cornerRadius(8)
HStack {
Spacer()
WebImage(url: realURL)
.resizable()
.indicator(.activity)
.aspectRatio(contentMode: .fit)
.background(Color.gray)
.frame(minWidth: 300, minHeight: 200)
Spacer()
}
} else {
LinkPresentationView(url: realURL, redraw: $redrawLink)
}
Expand Down

0 comments on commit dae3d98

Please sign in to comment.