Provide hash(into:) functions where the default implementation might be doing too much work.

This commit is contained in:
Brent Simmons
2024-05-26 11:53:36 -07:00
parent 401050465e
commit e275367664
11 changed files with 78 additions and 5 deletions

View File

@@ -18,6 +18,11 @@ private struct UILabelSizerSpecifier: Hashable {
let numberOfLines: Int
let font: UIFont
func hash(into hasher: inout Hasher) {
hasher.combine(numberOfLines)
hasher.combine(font.pointSize)
}
}
struct TextFieldSizeInfo {