API client
/
Getting started
/
Update
Dec. 04, 2023
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:
Copy
1
2
3
4
5
.package(
name: \"AlgoliaSearchClient\",
url: \"https://github.com/algolia/algoliasearch-client-swift\",
from: \"8.4.0\"
)
- Run:
Copy
1
swift package update
Update with CocoaPods
Add pod 'AlgoliaSearchClient', '~> 8.4'
to your Podfile
and run:
Copy
1
pod update
Update with Carthage
Add github \"algolia/algoliasearch-client-swift\" ~> 8.4
to your Cartfile
and run:
Copy
1
2
3
carthage update
./Carthage/Checkouts/algoliasearch-client-swift/carthage-prebuild
carthage build
Did you find this page helpful?