FittableFontLabel icon indicating copy to clipboard operation
FittableFontLabel copied to clipboard

UILabel (extension or subclass) that adjust the font size to fit a frame

Results 3 FittableFontLabel issues
Sort by recently updated
recently updated
newest added

In the README, there is this sentence: > Make the text fit the label size: width and height if multilines, width only if single lines Why do we only fit...

To reproduce this problem, add a FittableFontLabel to a storyboard. Set its text to be for example `"Hello\nWorld\nBye\nWorld"`. Set the `numberOfLines` property to either 0 or 4, the `lineBreakMode` to...

bug

` private func multiLineSizeState(rect: CGRect, size: CGSize) -> FontSizeState { // if rect within 10 of size if rect.height < size.height + 10 && rect.height > size.height - 10 &&...