Two infinite loop fixes (#359)
Both of these issues are fixes to `CustomStringConvertible` implementations that either directly or indirectly called themselves via `String(describing:)`.
This commit is contained in:
parent
9199a90551
commit
ee4e8debc1
|
@ -16,7 +16,7 @@ import CombineShim
|
|||
|
||||
public struct EnvironmentValues: CustomStringConvertible {
|
||||
public var description: String {
|
||||
String(describing: values)
|
||||
"EnvironmentValues: \(values.count)"
|
||||
}
|
||||
|
||||
private var values: [ObjectIdentifier: Any] = [:]
|
||||
|
|
|
@ -273,7 +273,7 @@ extension Color: CustomStringConvertible {
|
|||
if let providerDescription = provider as? CustomStringConvertible {
|
||||
return providerDescription.description
|
||||
} else {
|
||||
return String(describing: self)
|
||||
return "Color: \(provider.self)"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue