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

Feature/production safety #62

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

Conversation

NullIsOne
Copy link

What changed?

  • Replaced type of size CGSize -> CGFloat, because it is circle.
  • Disabled swizzle completelly if it is disabled.
  • Added logs (temporary)

Linked issues

#54

Motivation

Inspired by todos.

Notes

First of all struct Swizzled was in wrong scope. It tried to swizzle any time when UIWindow.layer was touched.
Also I've added unswizzle as mirrored operation triggered only correct Swizzled.once == true to completely disable it. It's important in production.

Logs are temporary.

@NullIsOne NullIsOne force-pushed the feature/production-safety branch from c841460 to 63d20d1 Compare September 5, 2024 08:39
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