From 3a558f2c6a89f1595a8d5c6e36d769986158fb07 Mon Sep 17 00:00:00 2001 From: zfmai Date: Mon, 8 Apr 2019 22:48:25 +0800 Subject: [PATCH] add text container bg setter/getter --- Sources/AttributedLabel.swift | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Sources/AttributedLabel.swift b/Sources/AttributedLabel.swift index 464e71d..8216705 100644 --- a/Sources/AttributedLabel.swift +++ b/Sources/AttributedLabel.swift @@ -82,6 +82,11 @@ open class AttributedLabel: UIView { updateText() } } + + open var textViewBackgroundColor: UIColor? { + set { textView.backgroundColor = newValue } + get { return textView.backgroundColor } + } //MARK: - init public override init(frame: CGRect) {