I have a problem that I got some crashes in iOS with a subclass of UILabel . Now, I would like to override setText: to call layoutIfNeeded , as this may solve the problem according to some stackoverflow answers ( like this one ).
But how can I achieve this? In Objective-C, this was not important, but I did not find a way to override setText: in Swift.
source share