From 0562619ca9f5be85bd9fcd2f8f7a3fafe246ef65 Mon Sep 17 00:00:00 2001 From: Michael Kirk Date: Sat, 24 Nov 2018 14:18:52 -0600 Subject: [PATCH] smaller margins between rail images, avoid choppy change as the margin updates are not being animated smoothly. --- SignalMessaging/Views/GalleryRailView.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SignalMessaging/Views/GalleryRailView.swift b/SignalMessaging/Views/GalleryRailView.swift index 5274f4aff..96bc1f0a6 100644 --- a/SignalMessaging/Views/GalleryRailView.swift +++ b/SignalMessaging/Views/GalleryRailView.swift @@ -66,7 +66,7 @@ public class GalleryRailCellView: UIView { func setIsSelected(_ isSelected: Bool) { self.isSelected = isSelected if isSelected { - layoutMargins = UIEdgeInsets(top: 0, left: 6, bottom: 0, right: 6) + layoutMargins = UIEdgeInsets(top: 0, left: 2, bottom: 0, right: 2) imageView.layer.borderColor = Theme.galleryHighlightColor.cgColor imageView.layer.borderWidth = 2 imageView.layer.cornerRadius = 2