| 测试已测试 | ✓ |
| Lang语言 | SwiftSwift |
| 许可证 | 自定义 |
| 发布最近发布 | 2017年12月 |
| SwiftSwift 版本 | 3.0 |
| SPM支持 SPM | ✗ |
由Tim Oliver,Realm Inc.,JP Simard,Tim Oliver,Jason Flax,Realm CI,RealmConverter,David Spector维护。
| 依赖项 | |
| Realm | >= 0 |
| TORoundedTableView | >= 0 |
适用于实现 Realm 移动平台的应用的通用帐户登录用户界面。
Realm 登录组件是一个 UI 框架,为使用 Realm 移动平台的应用提供了完整的登录屏幕。
它被设计成可以轻松地集成到现有的应用代码库中,并提供一个完整的功能界面,允许用户在该应用中登录或注册新帐户。
Realm LoginKit 目前仅支持 iOS。
目前正在开发中,并将很快完成。
已在路线图上,开发即将开始。
UITableView 的子类,当在 iPad 上查看时会创建圆形表格部分。// Create the object
let loginController = LoginViewController(style: .lightTranslucent) // init() also defaults to lightTranslucent
// Configure any of the inputs before presenting it
loginController.serverURL = "localhost"
// Set a closure that will be called on successful login
loginController.loginSuccessfulHandler = { user in
// Provides the successfully authenticated SyncUser object
}// Create the object
RLMLoginViewController *loginController = [[RLMLoginViewController alloc] initWithStyle:LoginViewControllerStyleLightTranslucent];
// Configure any of the inputs before presenting it
loginController.serverURL = @"localhost";
// Set a closure that will be called on successful login
loginController.loginSuccessfulHandler = ^(RLMSyncUser *user) {
// Provides the successfully authenticated RLMSyncUser object
};为了运行 Realm LoginKit 演示应用,需要安装 CocoaPods 以集成第三方库。
cd ~/Projects/realm-loginkit。pod install 以安装 Realm LoginKit 需要的依赖项。RealmLoginKit.xcworkspace 而不是 xcproject 文件。CocoaPods 是将 Realm LoginKit 安装到应用程序中的推荐方式,因为它将自动管理回收 Realm Objective-C 作为依赖项。在您的 PodFile 中,只需添加 pod 'RealmLoginKit'。
Realm LoginKit 也支持第三方认证提供商。但是,由于这些提供商可能需要额外的依赖项,而这些依赖项可能被视为冗余,因此它们被隔离在独立的 CocoaPods 子规范中
pod 'RealmLoginKit/AWSCognito'您也可以手动集成 Realm LoginKit;只需将 RealmLoginKit 文件夹复制到您的应用中,并将其拖入 Xcode。但即便如此,您还需要单独安装 依赖项。有关安装说明,请参阅它们各自的 GitHub 仓库。
有关更多详情,请参阅 CONTRIBUTING.md!
本项目遵循 贡献者契约行为准则。通过参与,您应遵守此准则。如有不当行为,请向 [email protected] 报告。
Realm LoginKit 采用 Apache 许可证。请参阅 LICENSE 文件以获取详细信息。