Debugging
This commit is contained in:
@@ -205,8 +205,14 @@ public class Product: Codable, ObjectDebugger {
|
|||||||
public var waterQuantity: Units.UnitValue<Double>? {
|
public var waterQuantity: Units.UnitValue<Double>? {
|
||||||
guard let ingredient = ingredients?.first(where: { $0.isWater })
|
guard let ingredient = ingredients?.first(where: { $0.isWater })
|
||||||
else {
|
else {
|
||||||
|
print("The ingredient was not found.")
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
print(ingredient)
|
||||||
|
|
||||||
|
print("Product quantity", productQuantity)
|
||||||
|
print("Percent estimate", ingredient.percentEstimate)
|
||||||
|
print("Raw unit", productQuantityUnit)
|
||||||
|
|
||||||
guard let quantity = productQuantity,
|
guard let quantity = productQuantity,
|
||||||
let estimate = ingredient.percentEstimate,
|
let estimate = ingredient.percentEstimate,
|
||||||
|
|||||||
Reference in New Issue
Block a user