Skip to content

Commit 2f58e47

Browse files
Merge pull request #267 from Iterable/bug/mob-1230-aspect-ratio
[MOB-1230] - Change content mode of UIImageView to "aspect fit".
2 parents fbd7145 + 4105a1c commit 2f58e47

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

swift-sdk/Internal/IterableInboxCell+Layout.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,7 @@ extension IterableInboxCell {
106106

107107
private static func createIconImageView() -> UIImageView {
108108
let imageView = UIImageView()
109+
imageView.contentMode = .scaleAspectFit
109110
imageView.translatesAutoresizingMaskIntoConstraints = false
110111
imageView.widthAnchor.constraint(equalToConstant: 60.0).isActive = true
111112
imageView.heightAnchor.constraint(equalToConstant: 60.0).isActive = true

0 commit comments

Comments
 (0)