WWDCCompanion icon indicating copy to clipboard operation
WWDCCompanion copied to clipboard

A demo app for full text search with GRDB.swift

WWDC Companion

This Swift 3 application stores, displays, and lets the user search the WWDC 2017 sessions.

Screen shot 1 Screen shot 2 Screen shot 3 Screen shot 4

How to run the app

  • Clone the WWDCCompanion repository

  • Execute:

    cd WWDCCompanion
    git submodule update --init GRDB
    cd GRDB
    git submodule update --init SQLiteCustom/src
    
  • Open WWDCCompanion.xcworkspace

  • Run the WWDCCompanion target

What’s in this demo?

  • Perform full-text search in an SQLite database with GRDB.swift

    • Database.swift initializes the SQLite database.
    • Session is the GRDB record that allows fetching and saving WWDC sessions in the database.
    • SessionsTableViewController synchronizes its table view with the content of the database with a fetched records controller.
    • SearchResultsTableViewController performs full-text search.
  • Install GRDB with a custom build of SQLite

  • Render HTML templates with GRMustache.swift

    • SessionViewController renders an HTML template that displays a WWDC session.
  • Parse HTML with Fuzi