Use the layer's shadowPath instead of path like this: shapeLayer.shadowPath = UIBezierPath( roundedRect: centerView.bounds, cornerRadius: 22 ) ...
確定! 回上一頁