Преглед изворни кода

fix distorted images in quotes

cyberta пре 4 година
родитељ
комит
c670095062
1 измењених фајлова са 2 додато и 0 уклоњено
  1. 2 0
      deltachat-ios/Chat/Views/QuoteView.swift

+ 2 - 0
deltachat-ios/Chat/Views/QuoteView.swift

@@ -30,6 +30,8 @@ public class QuoteView: UIView {
     public lazy var imagePreview: UIImageView = {
         let view = UIImageView()
         view.translatesAutoresizingMaskIntoConstraints = false
+        view.contentMode = .scaleAspectFill
+        view.clipsToBounds = true
         return view
     }()