Set every properties in public, so they're accessible from outside

This commit is contained in:
cdricms
2023-12-15 21:16:39 +01:00
parent 99460739b3
commit 2f919ffdef
11 changed files with 332 additions and 333 deletions

View File

@@ -2,11 +2,10 @@ import Foundation
import OpenFoodFacts
let off = OpenFoodFactsClient()
print("Hello world")
do {
let res = try await off.getProductByBarcode("3017620422003")
print(res)
print(res.product!.nutriments!.energy!)
} catch {
print("\(error)")
}