Skip to content

Instantly share code, notes, and snippets.

@prafullakumar
Created June 21, 2020 15:36
Show Gist options
  • Save prafullakumar/8a08fbb70cfc62baf1e833cd643ba027 to your computer and use it in GitHub Desktop.
Save prafullakumar/8a08fbb70cfc62baf1e833cd643ba027 to your computer and use it in GitHub Desktop.
struct QRCodeDataSet {
let logo: UIImage?
let url: String
let backgroundColor: CIColor
let color: CIColor
let size: CGSize
init(logo: UIImage? = nil, url: String) {
self.logo = logo
self.url = url
self.backgroundColor = CIColor(red: 1,green: 1,blue: 1)
self.color = CIColor(red: 1,green: 0.46,blue: 0.46)
self.size = CGSize(width: 300, height: 300)
}
init(logo: UIImage? = nil, url: String, backgroundColor: CIColor, color: CIColor, size: CGSize) {
self.logo = logo
self.url = url
self.backgroundColor = backgroundColor
self.color = color
self.size = size
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment