EFPrefix / EFQRCode

A better way to operate QR Code in Swift, support iOS, macOS, watchOS and tvOS.
https://efprefix.github.io/EFQRCode
MIT License
4.57k stars 481 forks source link

unable to give the colors of foreground and background #132

Closed Uday-iOS closed 2 years ago

Uday-iOS commented 2 years ago

Hi, I am unable to give the foreground and background colour of the QR code scanner. Can you please help me, I have a requirement.

ApolloZhu commented 2 years ago

If you are wondering how to configure the foreground/background color of the generated QRCode, you can set the foregroundColor and backgroundColor parameter. You can read more about this in the documentation or in example code

https://github.com/EFPrefix/EFQRCode/blob/3721e03912e07b8eec14cbb0b7c17841e041c8c7/Playgrounds/User%20Guide.playground/Pages/2.1.%20Parameters%20Explained.xcplaygroundpage/Contents.swift#L127-L133

If you have questions about implementing a QRCode scanner view, you can try to ask in Discussions with more details, but posting on general iOS development forums like Stack Overflow instead is probably more helpful.

ApolloZhu commented 2 years ago

Closing this issue for now. If you have additional questions, feel free to post follow-ups.