UILabel didSet attributedText not called after set in text:didSet

91 Views Asked by At

In a subclass of UILabel I add format on the text and set the attributedText in the following way

    open override var text: String? {
        didSet {
            …
            attributedText =
        }
    }

I also had some code in attributedText - didSet: but this is not called after setting text. I can't figure out why. Is there something missing?

0

There are 0 best solutions below