Set UIView Border Color or width in swift using @IBInspectable

前端 未结 0 780
日久生厌
日久生厌 2021-02-14 17:35
@IBDesignable extension UIView {
    @IBInspectable var borderColor: UIColor? {
        set {
            layer.borderColor = newValue?.cgColor
        }
        get {
          


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题