From 1bd254668f3bd8f3d355720237ef60584e11a6fd Mon Sep 17 00:00:00 2001 From: Matt Bruce Date: Tue, 15 Aug 2023 08:39:56 -0500 Subject: [PATCH] bug for icon Signed-off-by: Matt Bruce --- VDS/Components/Icon/Icon.swift | 2 ++ 1 file changed, 2 insertions(+) diff --git a/VDS/Components/Icon/Icon.swift b/VDS/Components/Icon/Icon.swift index 0c496793..96a42903 100644 --- a/VDS/Components/Icon/Icon.swift +++ b/VDS/Components/Icon/Icon.swift @@ -24,6 +24,8 @@ open class Icon: View { //-------------------------------------------------- open var imageView = UIImageView().with { $0.translatesAutoresizingMaskIntoConstraints = false + $0.setContentCompressionResistancePriority(.required, for: .vertical) + $0.setContentCompressionResistancePriority(.required, for: .horizontal) $0.contentMode = .scaleAspectFill $0.clipsToBounds = true }