SFDesignables 0.1.4

SFDesignables 0.1.4

sudofluff 维护。



  • 作者:
  • sudofluff

SFDesignables: Elegant way to design your UI in storyboard

SFDesignables是一个UIView子类的集合,它提供了对storyboard的支持。

安装

CocoaPods

CocoaPods是Cocoa项目的依赖管理器,可以使用以下命令进行安装

$ gem install cocoapods

要使用CocoaPods将SFDesignables集成到Xcode项目中,请将以下内容指定在您的Podfile

source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '11.3'
use_frameworks!

target '<Your Target Name>' do
    pod 'SFDesignables', '~> 0.1'
end

然后,运行以下命令

$ pod install

手动

如果您不想使用上述任何依赖管理器,您可以手动将SFDesignables集成到项目中。

您只需将SFDesignables/Classes目录中的所有swift文件复制粘贴到您的项目模块中即可。之后就可以了。

已知问题

'SFDesignables.framework'缺少必要的代码签名

这似乎是 CocoaPods 自身的问题。解决这个问题的一种方法是向 Podfile 中添加以下配置。

pod 'SFDesignables' do |installer|
  installer.pods_project.build_configurations.each do |config|
    config.build_settings.delete('CODE_SIGNING_ALLOWED')
    config.build_settings.delete('CODE_SIGNING_REQUIRED')
  end
end

致谢

SFDesignables 由 sudofluff 所有并维护。

许可协议

此项目遵循 MIT 许可协议 - 有关详细信息,请参阅 LICENSE 文件