IoniconsSwift 2.1.4

IoniconsSwift 2.1.4

测试已测试
语言语言 SwiftSwift
许可协议 MIT
发布最后发布2016 年 9 月
SPM支持 SPM

Josh Baker 维护。



IoniconsSwift

Ionicons 集成到 Swift 和 iOS。

为 Swift 3.0 构建 - 对于 Swift 的早期版本,请使用 swift\1.2swift\2.0 分支。

功能

  • 包含所有 732 个图标。
  • 小巧的 API,仅一个 enum 类型和两个方法。
  • 所有图标始终保持平衡和正方形。
  • UIImageUILabel 生成图标

安装

Carthage:将 github tidwall/IoniconsSwift 添加到您的 Cartfile
CocoaPods:将 pod 'IoniconsSwift', :git => 'http://github.com/cdebortoli/IoniconsSwift.git', :branch => 'cocoapods' 添加到您的 Podfile

示例

import IoniconsSwift

// Square UIImage of an icon.
let image = Ionicons.alert.image(35)                                 
let image = Ionicons.iosClock.image(35, color: UIColor.greenColor()) 

// Square UILabel
let label = Ionicons.alert.label(35)                                 
let label = Ionicons.iosClock.label(35, color: UIColor.greenColor()) 

联系

Josh Baker @tidwall

许可协议

IoniconsSwift 源代码受 MIT 许可证保护。