From eff929dd1a0f69a615cab147a21c41adc403fe90 Mon Sep 17 00:00:00 2001 From: Matthew Chen Date: Tue, 12 Mar 2019 10:41:00 -0400 Subject: [PATCH] Add border and shadow to image editor's palette view. --- .../Views/ImageEditor/ImageEditorPaletteView.swift | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/SignalMessaging/Views/ImageEditor/ImageEditorPaletteView.swift b/SignalMessaging/Views/ImageEditor/ImageEditorPaletteView.swift index 2e7689604..0ba7170a6 100644 --- a/SignalMessaging/Views/ImageEditor/ImageEditorPaletteView.swift +++ b/SignalMessaging/Views/ImageEditor/ImageEditorPaletteView.swift @@ -100,7 +100,11 @@ public class ImageEditorPaletteView: UIView { // We use an invisible margin to expand the hot area of this control. let margin: CGFloat = 20 imageView.autoPinEdgesToSuperviewEdges(with: UIEdgeInsets(top: margin, left: margin, bottom: margin, right: margin)) - + imageView.layer.borderColor = UIColor.white.cgColor + imageView.layer.borderWidth = CGHairlineWidth() + imageView.layer.shadowColor = UIColor.black.cgColor + imageView.layer.shadowOpacity = 2.0 + imageView.layer.shadowOpacity = 0.33 selectionWrapper.layoutCallback = { [weak self] (view) in guard let strongSelf = self else { return