Update the Swift API client
You should keep your Swift API client up to date to benefit from improvements and bug fixes. Algolia’s Service Level Agreement only applies to the latest version of the API client.
The Swift API client follows Semantic Versioning. You can check what the latest version of the API client is on the GitHub release page.
Update with the Swift Package Manager
-
Add the following line to the array of package dependencies in your
Package.swift
file:Copy1 2 3 4 5
.package( name: "AlgoliaSearchClient", url: "https://github.com/algolia/algoliasearch-client-swift", from: "8.4.0" )
-
Run:
Copy1
swift package update
Update with CocoaPods
Add pod 'AlgoliaSearchClient', '~> 8.4'
to your Podfile
and run:
1
pod update
Update with Carthage
Add github "algolia/algoliasearch-client-swift" ~> 8.4
to your Cartfile
and run:
1
2
3
carthage update
./Carthage/Checkouts/algoliasearch-client-swift/carthage-prebuild
carthage build