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

Floating point decimals can break the circular vs. rounded factor. #6

Open
benguild opened this issue Oct 1, 2017 · 0 comments
Open

Comments

@benguild
Copy link

benguild commented Oct 1, 2017

So, sometimes when using auto-resizing masks, UIStackView, or AutoLayout you run into strange things outside of your control, like this:

CGSize(width = 42.000000000000028, height = 42)

This breaks the circular appearance.

I submitted a fix for this in my pull-request, which I suggest merging as it adds support for various UIKit button states as well.

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

No branches or pull requests

1 participant