FittableFontLabel icon indicating copy to clipboard operation
FittableFontLabel copied to clipboard

multiline size state

Open luoqisheng opened this issue 1 year ago • 1 comments

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 && rect.width > size.width + 10 && rect.width < size.width - 10 { return .fit } else if rect.height > size.height || rect.width > size.width { return .tooBig } else { return .tooSmall } }

Hi, rect.width > size.width + 10 && rect.width < size.width - 10, Is there any mistake here?

luoqisheng avatar Jan 19 '24 13:01 luoqisheng