Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/yopicpic/RIABrowser
In App Browser for RealmSwift
https://github.com/yopicpic/RIABrowser
Last synced: 3 months ago
JSON representation
In App Browser for RealmSwift
- Host: GitHub
- URL: https://github.com/yopicpic/RIABrowser
- Owner: yopicpic
- License: mit
- Created: 2015-05-03T10:37:57.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2015-10-02T14:26:18.000Z (over 9 years ago)
- Last Synced: 2024-08-03T14:10:19.127Z (7 months ago)
- Language: Swift
- Homepage:
- Size: 275 KB
- Stars: 14
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
RIABrowser
======RIABrowser(Realm In App Browser) is Realm Object Viewer which is used in your swift application.
RIABrowser is useful for debugging of your application which used Realm Databases.
## Requirements- SWift 2.0
- iOS 8.0 and later
- Xcode 7.0 and later
- Realm Swift 0.95.2## Installation
CocoaPods is not supported yet.
- Installation of [Realm](https://realm.io/jp/docs/swift/latest/) into your project is required in advance.
(RIABrowser support Dynamic Framework only)
- Clone this repository: `git clone [email protected]:yopicpic/RIABrowser.git`
- Copy `RIABrowser/` into your project.## Usage
1.Register your model class of RealmSwift in AppDelegate.
```swift
import UIKit
import RealmSwift//sample class
class User : Object {
dynamic var id = NSUUID().UUIDString
}class AppDelegate: UIResponder, UIApplicationDelegate {
var window: UIWindow?
func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> Bool {
RealmInAppBrowser.registerClass(User)
return true
}
```
Object of your model class that is not registered will not be displayed.2. Add Launch Browser Button in any ViewController
```swift
override func viewDidLoad() {
super.viewDidLoad()
RealmInAppBrowser.sharedInstance.showLaunchButton(self)
}
```## Sample
RIABrowser.xcodeproj is a sample project ,but RIABrowser.xcodeproj doesn't contain Realm.
If you want to invoke sample project, you need to install [Realm](https://realm.io/jp/docs/swift/latest/) into RIABrowser.xcodeproj.
(Support Dynamic Framework only)## License
Copyright (c) 2015 Yoshiyuki Tanaka
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.