Skip to content
ketzusaka edited this page Oct 25, 2014 · 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() { (builder) in
    builder.buildSchemeSet { (builder) in
        builder.buildScheme { (scheme: BasicScheme) 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. Due to a bug in Swift you'll need to define these as unowned(unsafe) for now. Otherwise the application crashes at runtime.

Questions?

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

Clone this wiki locally