LoginSignup
19
19

More than 5 years have passed since last update.

Realmのブラウザ兼エディタ作った

Last updated at Posted at 2016-07-18

Realmを使っていて中を見たりいじったりしたいことが結構あるので、そういうの作りました。
Pod
スクリーンショット 2016-07-19 4.21.22.png

使い方

ここで紹介しているDebugHeadの上で動かします。

インストール

Podfile
pod 'DebugHead'
pod 'DebugMenuRealmBrowser'

初期化

AppDelegate.swift
import DebugHead
import DebugMenuRealmBrowser

func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> Bool {
  DebugMenuRealmBrowserViewController.prepare(moduleName: "<module name>")
  DebugHead.sharedInstance.prepare(menuClasses: [DebugMenuRealmBrowserViewController.self])
  return true
}

DebugHead通したくない場合

インストール

Podfile
pod 'RealmBrowser'

初期化

ViewController.swift
import RealmBrowser

presentViewController(RealmBrowser.instantiate(moduleName: "<module name>"), animated: true, completion: nil)
19
19
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
19
19