OcticonsKit
OcticonsKit 内部使用 octicons.ttf v4.3.0
示例
为了运行示例项目,首先克隆仓库,然后从 Example 目录运行 pod install
将 octicons 作为 UILabel
someLabel.font = UIFont.octicon(of: 18)
someLabel.text = String.octicon(with: .flame)
将 octicons 作为 UIImage
someImageView.image = UIImage.octicon(with: .flame, textColor: UIColor.orange, size: CGSize(width: 18, height: 18))
对于其他图标,请参阅 源代码,或构建示例应用。
需求
目标 | 版本 |
---|---|
iOS | => 8.0 |
Swift | => 4.0 |
安装
OcticonsKit可以通过CocoaPods或Carthage获取。
CocoaPods
pod "OcticonsKit"
Carthage
github "keitaoouchi/OcticonsKit"
关于详细的安装步骤,请参考Carthage说明文档
作者
keita.oouchi, [email protected]
许可协议
octicons.ttf文件受MIT许可协议的保护。在使用GitHub标志时,请确保遵循GitHub标志指南。
OcticonsKit遵循MIT许可协议。有关更多信息,请参阅LICENSE文件。