Set UIView Border Color or width in swift using @IBInspectable

前端 未结 0 1470
猫巷女王i
猫巷女王i 2021-02-14 17:27
@IBDesignable extension UIView {
    @IBInspectable var borderColor: UIColor? {
        set {
            layer.borderColor = newValue?.cgColor
        }
        get {
          


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