Re: Adjusting Font Size to fit View Rectangle


Ben Kennedy
 

On 20 Sep 2018, at 2:51 am, Dave <dave@...> wrote:

Those two methods alter the frame size, I want to keep the same Frame Size but reduce the Font Size of the Content until it fit into the Displayable Area. I’m 99% sure there is a method to do it but maybe its iOS only?
UILabel has `adjustsFontSizeToFitWidth` and `minimumScaleFactor` properties that aim to support that type of thing automatically. Could you employ it?

b

Join cocoa@apple-dev.groups.io to automatically receive all group messages.