Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add patternType #163

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

thisIsTheFoxe
Copy link

Hey, nice project!

I recently saw a design for a QR code that used different colors for certain control elements / patterns of a QR code and thought it might be a nice addition.

Functionally this PR doesn't change anything of the base implementations. It just replaces the isStatic parameter of the fillRect function from:

func fillRect(context: CGContext, rect: CGRect, isStatic: Bool)

to expose the specific pattern type:

func fillRect(context: CGContext, rect: CGRect, patternType: EFPointPatternType)

This allows for custom implementations of EFPointStyle to apply an individual styling to the control patterns of a QR code.

Open to any suggestions, would be cool if we could add that to the project.. ^-*

Thanks, and happy #hacktoberfest 🥳

- allows for more customization of 'control' patterns
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant