Add border and shadow to image editor's palette view.

pull/2/head
Matthew Chen 6 years ago
parent 6f44167e5c
commit eff929dd1a

@ -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

Loading…
Cancel
Save