diff --git a/Package.swift b/Package.swift index 473a135..ad986a4 100644 --- a/Package.swift +++ b/Package.swift @@ -14,7 +14,7 @@ let package = Package( ], targets: [ .binaryTarget(name: "PassioNutritionAISDK", - url: "https://github.com/Passiolife/Passio-Nutrition-AI-iOS-SDK-Distribution/raw/3.2.2/PassioNutritionAISDK.xcframework.zip", - checksum: "f59814bad86518cf0067932e5854c16e1fa0f994f44f9130afa6300a9998ac1b") + url: "https://github.com/Passiolife/Passio-Nutrition-AI-iOS-SDK-Distribution/raw/3.2.3/PassioNutritionAISDK.xcframework.zip", + checksum: "d0d428805f80f8badc443a11e5d8b0b585e49e0873eeeb4c64c98ca3d25c1f94") ] ) diff --git a/PassioNutritionAISDK.xcframework.zip b/PassioNutritionAISDK.xcframework.zip index 319d372..7c981d0 100644 Binary files a/PassioNutritionAISDK.xcframework.zip and b/PassioNutritionAISDK.xcframework.zip differ diff --git a/README.md b/README.md index 8657702..77941b6 100644 --- a/README.md +++ b/README.md @@ -60,13 +60,13 @@ passioConfig.sdkDownloadsModels = false ## Try first to run the Quick Start Demo - A fast and easy way to get started with the SDK is to test it inside of PassioSDKQuickStart Demo App included in this package. Here are the steps: + A fast and easy way to get started with the SDK is to test it using the Quick start project. Here are the steps: - 1. Open the project in Xcode: - 2. Replace the SDK Key in the PassioQuickStartViewController.swift file with the key you obtained by signing up at https://www.passio.ai/nutrition-ai - 3. Connect your iPhone and run - 4. Modify the app bundle from "com.PassioDemoApp.demo" to "com.yourcompany...." - 5. Run the demo app on your iPhone. + 1. Download the Quick start project from this URL: https://github.com/Passiolife/Passio-iOS-QuickStart + 2. Open the project in Xcode + 3. Find `YOUR_PASSIO_KEY` inside `ImageSelectionVC.swift` and replace the SDK Key with the key you obtained by signing up at https://www.passio.ai/nutrition-ai + 4. Modify the app bundle from "com.PassioDemoApp.demo" to "com.yourcompany...." + 5. Connect your iPhone and run the demo app on your iPhone 6. For support, please contact support@passiolife.com *** diff --git a/ReleaseNotes.md b/ReleaseNotes.md index b6e2b31..3cd5619 100644 --- a/ReleaseNotes.md +++ b/ReleaseNotes.md @@ -1,5 +1,11 @@ # Passio SDK Release Notes +## V3.2.3 +### Updated APIs: + +- Renamed `semanticSearchForFood` to `searchForFoodSemantic` +- Renamed `fetchNextPredictedIngredients` to `predictNextIngredients` + ## V3.2.2 ### New APIs: diff --git a/SDK_API.md b/SDK_API.md index 48dcb95..47caf0d 100644 --- a/SDK_API.md +++ b/SDK_API.md @@ -1,6 +1,6 @@ # PassioNutritionAISDK -## Version 3.2.2 +## Version 3.2.3 ```Swift import AVFoundation @@ -2593,11 +2593,11 @@ public class PassioNutritionAI { /// - completion: ``SearchResponse``, which containts list of alternate search and its results public func searchForFood(byText: String, completion: @escaping (PassioNutritionAISDK.SearchResponse?) -> Void) - /// Semantic search for food will return a list of alternate search and search result + /// Search for food semantic will return a list of alternate search and search result /// - Parameters: /// - byText: User typed text /// - completion: ``SearchResponse``, which containts list of alternate search and its results - public func semanticSearchForFood(searchTerm: String, completion: @escaping (PassioNutritionAISDK.SearchResponse?) -> Void) + public func searchForFoodSemantic(searchTerm: String, completion: @escaping (PassioNutritionAISDK.SearchResponse?) -> Void) /// Fetch ``PassioFoodItem`` for given ``PassioFoodDataInfo`` and servingQuantity and servingUnit. /// - Parameters: @@ -2723,7 +2723,7 @@ public class PassioNutritionAI { /// - Parameters: /// - ingredients: List of food ingredients name /// - completion: ``PassioPredictedIngredients``, PassioPredictedIngredients responds with a success or error response. If the response is successful, you will receive an array of ``PassioAdvisorFoodInfo`` ingredients showing what might be contained in the given food. - public func fetchNextPredictedIngredients(ingredients: [String], completion: @escaping PassioNutritionAISDK.PassioPredictedIngredients) + public func predictNextIngredients(ingredients: [String], completion: @escaping PassioNutritionAISDK.PassioPredictedIngredients) /// Use this method for scanning nutrients from Packaged Product. This method returns ``PassioFoodItem``. /// - Parameters: @@ -3999,7 +3999,7 @@ extension UIImageView { @MainActor public func loadImage(from url: URL, placeholder: UIImage? = nil) } - + infix operator .+ : DefaultPrecedence infix operator ./ : DefaultPrecedence