File tree Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -66,7 +66,7 @@ Description text</string>
66
66
<rect key =" frame" x =" 268" y =" 0.0" width =" 100" height =" 100" />
67
67
<constraints >
68
68
<constraint firstAttribute =" height" constant =" 100" id =" 8cm-im-EKi" />
69
- <constraint firstAttribute =" width" constant =" 100" id =" bVg-Ev-iLm" />
69
+ <constraint firstAttribute =" width" relation = " lessThanOrEqual " constant =" 100" id =" bVg-Ev-iLm" />
70
70
</constraints >
71
71
</imageView >
72
72
</subviews >
Original file line number Diff line number Diff line change @@ -299,6 +299,9 @@ public class IterableEmbeddedView:UIView {
299
299
imgView. isHidden = EMimage == nil
300
300
imgView. isHidden = self . EMimage == nil
301
301
imgView. image = EMimage
302
+ if !imgView. isHidden {
303
+ imgView. widthAnchor. constraint ( equalToConstant: 100 ) . isActive = true
304
+ }
302
305
cardImageView. isHidden = true
303
306
cardImageTopConstraint. isActive = false
304
307
titleToTopConstraint. isActive = true
You can’t perform that action at this time.
0 commit comments