NielJoubert
2/17/2018 - 9:42 AM

Make property of UIView subclass support UIAppearance

dynamic var borderColor: UIColor? = .black {
  didSet {
    layer.borderWidth = 1.0
    layer.borderColor = borderColor?.cgColor
  }
}
BorderView.appearance().borderColor = .red