mirror of
https://github.com/Ranchero-Software/NetNewsWire
synced 2025-08-12 06:26:36 +00:00
Provide hash(into:) functions where the default implementation might be doing too much work.
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user