Created
June 21, 2020 15:36
-
-
Save prafullakumar/8a08fbb70cfc62baf1e833cd643ba027 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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