Sep 20, 2024
Update the Swift API client
This is documentation for v8 of the Swift API clients, which is not the latest version. To see the documentation for the latest version, see Swift v9.
You should keep your Swift API client up to date to benefit from improvements and bug fixes.
The Swift API client follows Semantic Versioning.
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?