1. cocoapods install
target 'yourProjectName' do
use_frameworks!
pod 'SwiftIcons', '~> 1.4.1'
end
2.使用
import SwiftIcons
var b: UIImageView!
b = UIImageView()
b!.frame = CGRect(x: 0,y: 0,width: 50,height: 50)
b.image = UIImage.init(icon: .emoji(.airplane), size: CGSize(width: 35, height: 35), textColor: .black, backgroundColor: .white)
self.view.addSubview(b!)