InstantSearch-Swift 1.0.0-beta3

InstantSearch-Swift 1.0.0-beta3

测试已测试
语言语言 SwiftSwift
许可证 MIT
发布最新发布2017年6月
SwiftSwift 版本3.2
SPM支持 SPM

Guy Daher维护。



InstantSearch

Algolia提供。

注意

此仓库为WIP。不要在生产环境中使用,因为API仍可能更改。请保持关注,不久将推出测试版 :)。

简介

InstantSearch iOS是一个库,它提供小部件和辅助工具,以帮助您使用Algolia在iOS上构建最佳的即时搜索体验。它是基于Algolia的Swift API客户端构建的,为您提供构建各种搜索界面的高级解决方案。对于

使用

import InstantSearch

// Configure InstantSearch AppDelegate 
InstantSearch.reference.configure(appID: APP_ID, apiKey: API_KEY, index: INDEX)

// Declare your widgets (IB or programatically) in your ViewController
let searchBar = SearchBarWidget(frame: CGRect(...))
let statsWidget = StatsLabelWidget(frame: CGRect(...))
self.view.addSubview(searchBar)
self.view.addSubview(statsWidget)

// Add all widgets in view to InstantSearch in your ViewController
InstantSearch.reference.addAllWidgets(in: self.view)

// Run your app and write a query in the searchBar.

示例

您可以在我们的示例仓库中看到InstantSearch iOS的实际应用,其中我们发布了使用InstantSearch和Swift编写的示例应用程序。

要求

  • iOS 9.0+
  • Xcode 8.0+

参与

  • 如果您想贡献,请随意提交拉取请求。
  • 如果您有功能请求,请打开一个问题
  • 如果您发现了一个错误或需要帮助,请在提交问题前检查老旧的问题、FAQ以及在StackOverflow(标签'Algolia')上的帖子。

在贡献之前,请检查CONTRIBUTING文件获取更多信息。

如果您在应用程序中使用InstantSearch,我们非常乐意听到您的反馈!在discoursetwitter上联系我们。

示例

按照以下3个步骤运行示例项目:克隆InstantSearch仓库,打开InstantSearch工作空间并运行Example项目。

您还可以使用包含在InstantSearch.workspace中的InstantSearch Playground进行试验和学习。

作者

常见问题解答 (FAQ)

我在哪里可以搜索与Algolia相关的常见问题?

您可以在我们网站的常见问题解答页面中搜索。

变更日志

可以在CHANGELOG.md文件中找到。