Fix lint issues.

This commit is contained in:
Brent Simmons
2025-01-22 22:18:09 -08:00
parent 40ada2ba5a
commit bbef99f2d3
92 changed files with 1651 additions and 1694 deletions

View File

@@ -30,10 +30,10 @@ final class SingleLineUILabelSizer {
let height = text.height(withConstrainedWidth: .greatestFiniteMagnitude, font: font)
let width = text.width(withConstrainedHeight: .greatestFiniteMagnitude, font: font)
let calculatedSize = CGSize(width: ceil(width), height: ceil(height))
cache[text] = calculatedSize
return calculatedSize
}
static private var sizers = [UIFont: SingleLineUILabelSizer]()
@@ -48,7 +48,7 @@ final class SingleLineUILabelSizer {
sizers[font] = newSizer
return newSizer
}
// Use this call. Its easiest.
@@ -60,5 +60,5 @@ final class SingleLineUILabelSizer {
static func emptyCache() {
sizers = [UIFont: SingleLineUILabelSizer]()
}
}