Create a directory call Styles and create 1 style file for each view controller. If your view controller called MyViewController, name the file MyViewController.styles

This is enough to get the library to style your view controller.

To get live reload to work, you need to pass in the path of the directory containing your styles to the library. The cleanest way to do this without duplication is to specify it in your Info.plist file.

In Xcode project settings for your target, click Build Settings

Click the + button to add a User-Defined Setting.

Name the setting STYLES_DIRECTORY

Set the value to the Styles/ directory. eg.: $(SRCROOT)/ZhiExample/Styles/

Delete the value for all release builds. (When this value is empty, the library will not attempt to live reload styles). See example.