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

Yasir/task/new checker pattern #4

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

myawesomehub
Copy link

Summary

I have introduced a modifier (stickerPatternType(_:)) that allows developers to set the pattern type to square, which is by default set to diamond.

Previously, the rotation degree was set to 45 degrees to give the pattern a diamond shape. I have now changed this value to 0 to make it square based on choice.

In the future, we can add more patterns, such as hexagon, circle, etc. To support this, I have created a switch-case structure in the Metal file and an enum in the Sticker module named StickerPattern.

Example usage:

Image(systemName: "bolt.fill")
    .font(.system(size: 300))
    .stickerEffect()
    .stickerPatternType(.square)

Updated Documentation

The README file has been updated to reflect these changes.

That's it

Let me know what do you think about it. Thank you!

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