Przeglądaj źródła

fix distorted images in quotes

cyberta 4 lat temu
rodzic
commit
c670095062
1 zmienionych plików z 2 dodań i 0 usunięć
  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
     }()