Skip to content
James Richard edited this page Dec 19, 2015 · 13 revisions

Welcome to TableSchemer's wiki! Here you'll find information about installation and usage of TableSchemer.

Installing TableSchemer

Because Swift cannot be compiled into a static library we don't support CocoaPods just yet. For now, you'll have to copy the files under the Sources directory into your project.

Usage

The recommended usage of TableSchemer is to use the closure methods that pass in builder objects.

let tableScheme = TableScheme(tableView: tableView) { builder in
    builder.buildSchemeSet { builder in
        builder.buildScheme { (builder: BasicSchemeBuilder) in
            // Configure your scheme
        }
    }
}

For more details on using TableSchemer and it's built in Schemes check out our Using Table Schemer page. For more details on creating your own TableSchemer schemes check out our Creating Custom Schemes page.

A note about retain cycles

Keep in mind that you may need to have self be unowned when setting configuration blocks. In the buildSchemeSet and buildScheme blocks this isn't needed because those blocks are executed immediately, but the configuration blocks are retained by the schemes.

Questions?

Check out our Contact section for ways to get in touch.

Clone this wiki locally