Latest2.2.1
Homepagehttps://github.com/bigfish24/ABFRealmSearchViewController
LicenseMIT
Platformsios 8.0, requires ARC
DependenciesRealmSwift
Authors

ABFRealmSearchViewController

The ABFRealmSearchViewController class creates a controller object that manages a table view and search bar to display and respond to input for text search against a Realm object class.

This allows for the creation of a text search interface in as little as 27 lines of code!

Realm Swift support was added in version 1.3 with an identical API.

The controller is meant to be subclassed. By default the resultsDataSource and resultsDelegate protocols are set as self, so that the subclass can implement these methods.

Documentation

Click Here

Installation

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

Objective-C

pod "ABFRealmSearchViewController"

Swift

pod "RealmSearchViewController"

Screenshots

The demo app uses RealmSFRestaurantData to search through restaurants in San Francisco.

SF Restaurant Search View
SF Restaurant Search With Text View

Demo

Build and run/test the Example project in Xcode to see ABFRealmSearchViewController in action. This project uses CocoaPods. If you don’t have CocoaPods installed, grab it with [sudo] gem install cocoapods.

Objective-C

git clone https://github.com/bigfish24/ABFRealmSearchViewController.git
cd ABFRealmSearchViewController/ABFRealmSearchViewControllerExample
pod install
open ABFRealmSearchViewController.xcworkspace

Requirements

  • iOS 8+
  • Xcode 6

Swift

git clone https://github.com/bigfish24/ABFRealmMapView.git
cd ABFRealmSearchViewController/SwiftExample
pod install
open RealmSearchViewController.xcworkspace

Requirements

  • iOS 8+
  • Xcode 7

Latest podspec

{
    "name": "RealmSearchViewController",
    "version": "2.2.1",
    "summary": "Drop-in text search interface for Realm Swift",
    "description": "The RealmSearchViewController class creates a controller object that manages a table view and search bar to display and respond to input for text search against a Realm Swift object class.",
    "homepage": "https://github.com/bigfish24/ABFRealmSearchViewController",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "Adam Fish": "[email protected]"
    },
    "platforms": {
        "ios": "8.0"
    },
    "source": {
        "git": "https://github.com/bigfish24/ABFRealmSearchViewController.git",
        "tag": "v2.2.1"
    },
    "source_files": "RealmSearchViewController/*.{swift}",
    "requires_arc": true,
    "dependencies": {
        "RealmSwift": [
            ">= 1.0.0"
        ]
    },
    "pushed_with_swift_version": "3.0"
}

Pin It on Pinterest

Share This