Parcourir la source

fix distorted images in quotes

cyberta il y a 4 ans
Parent
commit
c670095062
1 fichiers modifiés avec 2 ajouts et 0 suppressions
  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
     }()