Interface Builder designable classes to use ByvStyles
To run the example project, clone the repo, and run pod install
from the Example directory first.
To IBDesignable be able to load Colors.josn and Styles.json they must be placed in a zeplin
named folder inside the project root
directory.
If Interface builder display some errors you can place this code inside Podfile and run pod install
post_install do |installer|
installer.pods_project.targets.each do |target|
# add this line
target.new_shell_script_build_phase.shell_script = "mkdir -p $PODS_CONFIGURATION_BUILD_DIR/#{target.name}"
target.build_configurations.each do |config|
config.build_settings['CONFIGURATION_BUILD_DIR'] = '$PODS_CONFIGURATION_BUILD_DIR'
end
installer.pods_project.build_configurations.each do |config|
config.build_settings.delete('CODE_SIGNING_ALLOWED')
config.build_settings.delete('CODE_SIGNING_REQUIRED')
end
end
end
ByvStylesIB is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod 'ByvStylesIB'
adrianByv, [email protected]
ByvStylesIB is available under the MIT license. See the LICENSE file for more info.