Skip to content

Commit 74fc976

Browse files
author
“Akshay
committed
Making image width a constant width
Image in banner view to have constant width of 100 if its available. If not, the flexible constraint view can shrink the size of imgView making it available to stackview when image is not present
1 parent 2f5e507 commit 74fc976

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

swift-sdk/uicomponents/IterableEmbeddedView.swift

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -299,6 +299,9 @@ public class IterableEmbeddedView:UIView {
299299
imgView.isHidden = EMimage == nil
300300
imgView.isHidden = self.EMimage == nil
301301
imgView.image = EMimage
302+
if !imgView.isHidden {
303+
imgView.widthAnchor.constraint(equalToConstant: 100).isActive = true
304+
}
302305
cardImageView.isHidden = true
303306
cardImageTopConstraint.isActive = false
304307
titleToTopConstraint.isActive = true

0 commit comments

Comments
 (0)