I am using CIAztecCodeGenerator to generate an Aztec code.
I'm trying to set a pattern instead of a solid color for the foreground color for it however it is rendering as blank/white I was wondering if anyone knew what I am doing wrong.
[colorFilter setValue:[CIColor colorWithCGColor:[[UIColor colorWithPatternImage:image] CGColor]] forKey:@"inputColor0"];
It's a bit more complicated, but you can use a custom pattern by combining and blending the images in a certain way:
Objective-C version:
Note that the numbers in the two scaling steps depend on how large you want to display the code and how the pattern image should be scaled above the code.