Fix shadow on palette view.

pull/2/head
Matthew Chen 6 years ago
parent 75cfd979ba
commit fedbe3a5d0

@ -111,8 +111,7 @@ 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.addBorder(with: .white)
imageWrapper.layoutCallback = { [weak self] (view) in
guard let strongSelf = self else {

Loading…
Cancel
Save