InstantSearch iOS
如果您想在 iOS 上构建基于 Algolia 的搜索界面,应该查看建立在上述库之上的 InstantSearch iOS 库,它提供了构建搜索体验的 UI 组件。否则,继续阅读。
Swift 版 InstantSearch Core
这是基于 Algolia 的 Swift API 客户端构建的、使用 Algolia 的 搜索 API 的 InstantSearch Core Swift 库。它支持 macOS、iOS、tvOS 和 watchOS。
您可以在 Algolia 文档 中找到最新版本的 用户文档。
安装
如果您使用的是低于 4.2 的 Swift 版本,您必须使用 InstantSearch Core 的 3.3 版本。这个版本已过时,不推荐使用。
CocoaPods
CocoaPods 是一个用于 Cocoa 项目的依赖管理器。
要安装 InstantSearch,只需在您的 Podfile 中添加以下行
Swift 5.0
pod 'InstantSearchCore', '~> 6.0'
Swift 4.2+
pod 'InstantSearchCore', '~> 5.0'
Swift 4.1
pod 'InstantSearchcore', '~> 3.3'
然后,运行以下命令
$ pod update
Carthage
Carthage 是一个简单的、分布式的 Cocoa 依赖管理器。
要安装 InstantSearch,只需在您的 Cartfile 中添加以下行
Swift 5.0
github "algolia/instantsearch-core-swift" ~> 6.0
Swift 4.2+
github "algolia/instantsearch-core-swift" ~> 5.0
Swift 4.1
github "algolia/instantsearch-core-swift" ~> 3.3
许可证
InstantSearch Core iOS采用Apache 2.0许可证。