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

  1. Add the following line to the array of package dependencies in your Package.swift file:
1
2
3
4
5
  .package(
    name: \"AlgoliaSearchClient\",
    url: \"https://github.com/algolia/algoliasearch-client-swift\",
    from: \"8.4.0\"
  )
  1. Run:
1
  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
Did you find this page helpful?
Swift API clients v8