Skip to content

Latest commit

 

History

History
20 lines (17 loc) · 598 Bytes

index.md

File metadata and controls

20 lines (17 loc) · 598 Bytes

Resulting QR Code image

Code

let svgData = try QRCode.build
   .text("https://github.com/dagronf/QRCode")
   .background.color(.black)
   .background.cornerRadius(2)
   .onPixels.foregroundColor(CGColor.sRGBA(0.119, 0.89, 1))
   .onPixels.shape(.horizontal(insetFraction: 0.05))
   .eye.shape(.barsHorizontal())
   .shadow(.innerShadow, dx: 0.15, dy: -0.15, blur: 8, color: CGColor.gray(0))
   .generate.svg(dimension: 600)
ry outputFolder.write(svgData, to: "basic-inner-shadow.svg")