RealmInAppBrowser
Realm In App Browser
一种轻松查看您应用中的 Realm DB 的方法
关键功能 • 示例 • 安装 • 使用方法 • 致谢 • 许可证
描述
此视图将允许您在应用中查看您的 Realm 数据库,这样您就可以随时查看和调试您的 realm db。
此项目的目标是使浏览器大致上像 Realm Browser 一样工作。
关键功能
- 一调用即可查看您的 realm 数据库
- 按属性排序
- 过滤实体
- 长按查看属性/值信息
- (正在进行中) 正确显示关系
- (可选) 保存您的查询,您不必每次都输入
示例
要运行示例项目,请克隆仓库,然后从示例目录运行pod install
。
需求
安装
RealmInAppBrowser可以通过CocoaPods获取。要安装它,只需将以下行添加到您的Podfile中
pod 'RealmInAppBrowser'
如何使用
克隆此应用程序并安装pods
// Init Realm InAppBrowser (It's a UISplitViewController)
let spvc = RealmInAppBrowser()
// Present the Browser how you like
spvc.modalPresentationStyle = .fullScreen
// Define what happens when the users presses close
spvc.pressedCloseAction = { self.dismiss(animated: true , completion: nil) }
self.present(spvc, animated: true, completion: nil)
致谢
本软件使用了以下开源包
许可
RealmInAppBrowser遵循MIT许可。有关更多信息,请参阅LICENSE文件。
GitHub @matt-bro