IGIdenticon

Carthage compatible CocoaPods Compatible

这个库是 identicon 库的移植,用于生成头像。
Screenshot example

安装

Carthage

github "seaburg/IGIdenticon"

CocoaPods

pod 'IGIdenticon'

SwiftPM

  dependencies: [
    .package(url: "https://github.com/seaburg/IGIdenticon.git",
             from: "0.7.0")
  ]

用法

imageView.image = Identicon().icon(from: "string", size: CGSize(width: 100, height: 100))