mirror of
https://github.com/Ranchero-Software/NetNewsWire
synced 2025-08-12 06:26:36 +00:00
Fix lint issues.
This commit is contained in:
@@ -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. It’s easiest.
|
||||
@@ -60,5 +60,5 @@ final class SingleLineUILabelSizer {
|
||||
static func emptyCache() {
|
||||
sizers = [UIFont: SingleLineUILabelSizer]()
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user