Skip to content
Drop-in text search interface for Realm data
Branch: master
Clone or download
Latest commit 61c35e9 Mar 20, 2017
Type Name Latest commit message Commit time
Failed to load latest commit information.
ABFRealmSearchViewController Converted to Swift 3. Mar 20, 2017
ABFRealmSearchViewControllerExample Converted to Swift 3. Mar 20, 2017
Documentation/html Fix typo in documentation. Jun 3, 2015
RealmSearchViewController Converted to Swift 3. Mar 20, 2017
SwiftExample Converted to Swift 3. Mar 20, 2017
screenshots Improved quality of screenshots. Jun 3, 2015
.gitignore Update gitignore and podspec Jun 11, 2015
LICENSE Update Mar 20, 2017
RealmSearchViewController.podspec Updated to v2.2.1 Mar 20, 2017


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.


Click Here


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


pod "ABFRealmSearchViewController"


pod "RealmSearchViewController"


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

SF Restaurant Search View SF Restaurant Search With Text View


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.


git clone
cd ABFRealmSearchViewController/ABFRealmSearchViewControllerExample
pod install
open ABFRealmSearchViewController.xcworkspace


  • iOS 8+
  • Xcode 6


git clone
cd ABFRealmSearchViewController/SwiftExample
pod install
open RealmSearchViewController.xcworkspace


  • iOS 8+
  • Xcode 7
You can’t perform that action at this time.