Latest 0.1.0
Homepage https://github.com/trmquang93/NativeRealmBrowser
License MIT
Platforms ios 8.0, requires ARC
Dependencies RealmSwift
Frameworks UIKit
Authors

Lightweight browser that let’s you inspect which objects currently are in your realm database on your iOS device or simulator

Usage

import NativeRealmBrowser

  • In any UIViewController:
            if let realmBrowser = RealmBrowser.realmBrowser() {
                present(realmBrowser, animated: true, completion: nil)
            }
            else {
                // Realm error
            }

Use one of the three methods to browse your Realm database

/**
         Instantiate the browser using default Realm.

         - return an instance of realmBrowser
         */
    public static func realmBrowser() -> UINavigationController?
 /**
         Instantiate the browser using a specific version of Realm.

         - parameter realm: Realm
         - returns an instance of realmBrowser
         */
    public static func realmBrowserForRealm(_ realm: RealmSwift.Realm) -> UINavigationController?
/**
         Instantiate the browser using a specific version of Realm at a specific path.
         init(path: String) is deprecated.

         realmBroswerForRealmAtPath now uses the convenience initialiser init(fileURL: NSURL)

         - parameter url: URL
         - returns an instance of realmBrowser
         */
    public static func realmBroswerForRealmURL(_ url: URL) -> UINavigationController?

Requirements

Xcode 7
iOS 8.0
Installation

NativeRealmBrowser is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod "NativeRealmBrowser"

Future features

Implementing search for objects. Layout improvements.

Documentation

Available method documentation here

Author

Tran Minh Quang, [email protected]

License

NativeRealmBrowser is available under the MIT license. See the LICENSE file for more info.

Latest podspec

{
    "name": "NativeRealmBrowser",
    "platforms": {
        "ios": "8.0"
    },
    "summary": "Lightweight browser that let's you inspect which objects currently are in your realm database on your iOS device or simulator.",
    "requires_arc": true,
    "version": "0.1.0",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "Tran Minh Quang": "[email protected]"
    },
    "homepage": "https://github.com/trmquang93/NativeRealmBrowser",
    "source": {
        "git": "https://github.com/trmquang93/NativeRealmBrowser.git",
        "tag": "0.1.0"
    },
    "frameworks": "UIKit",
    "dependencies": {
        "RealmSwift": []
    },
    "source_files": "NativeRealmBrowser/**/*.{swift}",
    "pushed_with_swift_version": "3.0"
}

Pin It on Pinterest

Share This