-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Replace GIFs with new GIF viewer #1437
Changes from all commits
7de2bf9
eeeb020
8e67ef9
b9a2454
f446c07
24dd0ce
f7dd54a
69b258d
2970e50
509a7a2
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
{ | ||
"colors" : [ | ||
{ | ||
"color" : { | ||
"color-space" : "srgb", | ||
"components" : { | ||
"alpha" : "0.800", | ||
"blue" : "0x24", | ||
"green" : "0x0E", | ||
"red" : "0x16" | ||
} | ||
}, | ||
"idiom" : "universal" | ||
} | ||
], | ||
"info" : { | ||
"author" : "xcode", | ||
"version" : 1 | ||
} | ||
} |
joshuatbrown marked this conversation as resolved.
Show resolved
Hide resolved
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,17 +7,24 @@ struct AvatarView: View { | |
var size: CGFloat | ||
|
||
var body: some View { | ||
WebImage(url: imageUrl) | ||
.resizable() | ||
.placeholder { | ||
WebImage( | ||
url: imageUrl, | ||
content: { image in | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Is this an API change on SDWebImage? It stinks that we have to duplicate a bunch of the view modifiers now. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yeah, unfortunately the old API is gone. I can look and see if we can do anything better, or maybe try to unduplicate the view modifiers. |
||
image | ||
.resizable() | ||
.aspectRatio(contentMode: .fill) | ||
.frame(width: size, height: size) | ||
.clipShape(Circle()) | ||
}, | ||
placeholder: { | ||
Image.emptyAvatar | ||
.resizable() | ||
.renderingMode(.original) | ||
.aspectRatio(contentMode: .fill) | ||
.frame(width: size, height: size) | ||
.clipShape(Circle()) | ||
} | ||
.indicator(.activity) | ||
.aspectRatio(contentMode: .fill) | ||
.frame(width: size, height: size) | ||
.clipShape(Circle()) | ||
) | ||
} | ||
} | ||
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
oooh, what is is
[skip-release-notes]
. Does this prevent them from showing up on TestFlight?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's the idea. Right now it's 100% manual; maybe in the future it'll be 100% automated. And maybe #1438 will change the approach slightly.