Skip to content

Latest commit

 

History

History
23 lines (19 loc) · 593 Bytes

index.md

File metadata and controls

23 lines (19 loc) · 593 Bytes

Resulting QR Code image

Code

Builder

let pngData = try QRCode.build
   .text("QRCode WatchOS Demo")
   .errorCorrection(.medium)
   .backgroundColor(hexString: "000033")
   .quietZonePixelCount(1)
   .background.cornerRadius(4)
   .onPixels.foregroundColor(hexString: "FFFF80")
   .eye.shape(QRCode.EyeShape.RoundedOuter())
   .eye.foregroundColor(hexString: "FEE521")
   .pupil.foregroundColor(hexString: "FFCC4D")
   .generate.image(dimension: 300, representation: .png(scale: 2))