Latest1.0
Homepagehttps://github.com/bigfish24/RealmBlogData
LicenseMIT
Platformsios 7.0, requires ARC
DependenciesRealm
Authors

Data culled from Realm’s blog for use in Realm tutorials.

Includes a model: BlogObject that maps to the data in the included blog.json file. To load the data into your app’s default Realm, call loadBlogData on the BlogObject class.

Also includes a helper function: randomEmoji which returns a random emoji character as an NSString.

This data is used in the example apps for ABFRealmSearchViewController to demonstrate the search capabilities.

Installation

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

Objective-C

pod 'RealmBlogData'

Swift

pod 'RealmSwiftBlogData'

How To Use

Objective-C

#import <RealmBlogData/BlogObject.h>

// Call somewhere in your code
[BlogObject loadBlogData]
...
// Get a BlogObject
[BlogObject allObjects].first

Swift

import RealmSwiftBlogData

// Call somewhere in your code
BlogObject.loadBlogData()
...
// Get a BlogObject
try! Realm().objects(BlogObject).first

Latest podspec

{
    "name": "RealmBlogData",
    "version": "1.0",
    "summary": "Blog data culled from Realm.io for use in Realm tutorials.",
    "description": "Data culled from Realm's blog. Includes Realm models for use in importing into Realm file.",
    "homepage": "https://github.com/bigfish24/RealmBlogData",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "Adam Fish": "[email protected]"
    },
    "platforms": {
        "ios": "7.0"
    },
    "source": {
        "git": "https://github.com/bigfish24/RealmBlogData.git",
        "tag": "v1.0"
    },
    "source_files": "objective-c/*.{h,m}",
    "resources": [
        "data/*.json"
    ],
    "requires_arc": true,
    "dependencies": {
        "Realm": [
            ">= 0.96"
        ]
    }
}

Pin It on Pinterest

Share This