From e19e4547c48a65de468ded514efad7d05e591a1e Mon Sep 17 00:00:00 2001 From: Pantelis Giazitsis Date: Wed, 21 Aug 2024 18:16:25 +0300 Subject: [PATCH] Fixed layout issues in GifImageView (#136) Co-authored-by: Pantelis Giazitsis --- .../UIComponents/BaseComponents/GifImageView.swift | 6 ++++++ .../xcshareddata/swiftpm/Package.resolved | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/PresentationLayer/UIComponents/BaseComponents/GifImageView.swift b/PresentationLayer/UIComponents/BaseComponents/GifImageView.swift index d4ac95af6..4c283d119 100644 --- a/PresentationLayer/UIComponents/BaseComponents/GifImageView.swift +++ b/PresentationLayer/UIComponents/BaseComponents/GifImageView.swift @@ -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 } @@ -36,6 +41,7 @@ struct GifImageView: UIViewRepresentable { .ignoresSafeArea() GifImageView(fileName: "image_pulse_claiming_key") .aspectRatio(1.0, contentMode: .fit) + .padding(.horizontal) } } diff --git a/wxm-ios.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved b/wxm-ios.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved index 3d6316458..6a632dec2 100644 --- a/wxm-ios.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved +++ b/wxm-ios.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved @@ -1,5 +1,5 @@ { - "originHash" : "8cb8285fe837020417b83302c022c80d5214090b47c86e63bbea0ed6628e55ff", + "originHash" : "af7ad626f4862fa0c2fe8614da60079b048f208cf420272d1cb6bacb70efbadd", "pins" : [ { "identity" : "abseil-cpp-binary",