ByvStylesIB 0.1.2

ByvStylesIB 0.1.2

Adrian Apodaca 维护。



  • adrianByv

ByvStylesIB

支持使用 ByvStyles 的 Interface Builder 可设计类

CI Status Version License Platform

示例

要运行示例项目,请克隆仓库,然后首先从 Example 目录中运行 pod install

要求

要使 IBDesignable 能够加载 Colors.josn 和 Styles.json,它们必须放置在项目根目录下的名为 zeplin 的文件夹中。

PODs 故障

如果 Interface Builder 显示错误,您可以在 Podfile 中放置以下代码,并运行 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 可通过 CocoaPods 获取。要安装它,只需将以下行添加到您的 Podfile 中:

pod 'ByvStylesIB'

作者

adrianByv, [email protected]

许可

ByvStylesIB 在 MIT 许可证下可用。有关更多信息,请参阅 LICENSE 文件。