feat: added a new way to detect a mac model (if missed on the list)

This commit is contained in:
Serhiy Mytrovtsiy
2023-02-03 17:04:24 +01:00
parent 8963320ff1
commit fa8a4d8d21
3 changed files with 43 additions and 16 deletions

View File

@@ -105,6 +105,10 @@ extension String: LocalizedError {
return self
}
}
func removingWhitespaces() -> String {
return components(separatedBy: .whitespaces).joined()
}
}
public extension DispatchSource.MemoryPressureEvent {