Professional Documents
Culture Documents
https://developer.apple.com/library/content/documentation/GraphicsImaging/Reference/
CoreImageFilterReference/index.html#//apple_ref/doc/filter/ci/CIQRCodeGenerator
https://github.com/EyreFree/EFQRCode
https://github.com/aschuch/QRCode
https://github.com/gscarrone/iOS-QR-Code-Generator
Note:
I think I will start testing with option 1.
If possible, I prefer to not adding library to keep at minimum app size.
TESTING with “CIQRCodeGenerator” filter
The module refers to the black and white dots that make up QR Code. Each QR Code symbol
version has the maximum data capacity according to the amount of data, character type and error
correction level. In other words, as the amount of data increases, more modules are required to
comprise QR Code, resulting in larger QR Code symbols.
Example 1
Input = “https://kask.us/u/12345” => total characters = 23
Error correction level = Q ~> Approx 25%
Circle diameter = 11 modules
Square width = 5 modules
Based on table will be generated QR code size = 25x25 modules
Total covered area % = (11*11 + 5*5 )/ (25*25) * 100% = 23.36%
Conclusion: 23.36% ~> still below 25%, so it should can be read/scanned.
Result: SUCCESS
Example 2
Input = “https://kask.us/u/12345” => total characters = 23
Error correction level = Q ~> Approx 25%
Circle diameter = 11 modules
Square width = 6 modules (previous example is using 5 modules)
Based on table will be generated QR code size = 25x25 modules
Total covered area % = (11*11 + 6*6) / (25*25) * 100% = 25.12%
Conclusion: 25.12% ~> more than 25%, so it can’t be read/scanned.
Result: FAILURE
For time to generate, here is full report (tested on Device iPhone SE iOS 10.3.3)
"https://www.kaskus.co.id/profile/1234567 M 7
41
8" Q 8
H 8