Skip to content

Commit

Permalink
Fixed layout issues in GifImageView (#136)
Browse files Browse the repository at this point in the history
Co-authored-by: Pantelis Giazitsis <[email protected]>
  • Loading branch information
pantelisss and Pantelis Giazitsis authored Aug 21, 2024
1 parent 2bb56ce commit e19e454
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,11 @@ struct GifImageView: UIViewRepresentable {
imageView.animatedImage = image
imageView.contentMode = .scaleAspectFit

imageView.setContentHuggingPriority(.defaultLow, for: .vertical)
imageView.setContentHuggingPriority(.defaultLow, for: .horizontal)
imageView.setContentCompressionResistancePriority(.defaultLow, for: .vertical)
imageView.setContentCompressionResistancePriority(.defaultLow, for: .horizontal)

return imageView
}

Expand All @@ -36,6 +41,7 @@ struct GifImageView: UIViewRepresentable {
.ignoresSafeArea()
GifImageView(fileName: "image_pulse_claiming_key")
.aspectRatio(1.0, contentMode: .fit)
.padding(.horizontal)

}
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"originHash" : "8cb8285fe837020417b83302c022c80d5214090b47c86e63bbea0ed6628e55ff",
"originHash" : "af7ad626f4862fa0c2fe8614da60079b048f208cf420272d1cb6bacb70efbadd",
"pins" : [
{
"identity" : "abseil-cpp-binary",
Expand Down

0 comments on commit e19e454

Please sign in to comment.