iOS 原生实现生成二维码(CoreImage)工具类,不依赖第三方库,可自定义背景颜色,添加logo(Swift 4.0)
importFoundationimportCoreImageimportUIKitextensionUIColor{varcoreImageColor:CIColor{returnCIColor(color:self)}varcomponents:(red:CGFloat,green:CGFloat,blue:CGFloat,alpha:CGFloat){letcoreImageColor=se