FontIcons 1.5.0

FontIcons 1.5.0

测试已测试
语言语言 SwiftSwift
许可证 MIT
发布时间最新发布2018年12月
SPM支持 SPM

Marek Matula 维护。



FontIcons 1.5.0

  • 作者
  • Marek Matula

FontIcons

通用字体图标库。包含以下默认实现

源代码基于 Font-Awesome-Swift

需要其他字体?创建一个包含详细信息的 issue。

CI Status Version License Platform

用法

  • 使用 FontIcons 1.1.0 和 Swift 2.2
  • 使用 FontIcons 1.2.1 和 Swift 2.3
  • 使用 FontIcons 1.3.1 和 Swift 3.0
  • 使用 FontIcons 1.4.x 和 Swift => 3.2
  • 使用 FontIcons 1.5.x 和 Swift => 4.2

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

需求

  • Xcode 8

安装

FontIcons可通过CocoaPods获取。要安装它,只需将以下命令之一添加到你的Podfile中

pod "FontIcons/FontAwesome"
pod "FontIcons/VaadinIcons"
pod "FontIcons/MaterialDesign"
pod "FontIcons/Ionicons"

在你的swift文件中导入库

import FontIcons

使用方法设置图标

func setFontIcon()
func setFontIconText() 

请参阅Extensions.swift文件,了解其他可用方法。支持的类有

UIButton, UIBarButtonItem, UILabel, UIImageView, UITabBarItem, UISegmentedControl, UIImage, UISlider

作者

Marek Matula,[email protected]

许可协议

FontIcons遵循MIT许可协议。有关更多信息,请参阅LICENSE文件。FontFiles有各自的许可协议