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

Autolayout issue #52

Open
terryworona opened this issue Jul 23, 2020 · 1 comment
Open

Autolayout issue #52

terryworona opened this issue Jul 23, 2020 · 1 comment

Comments

@terryworona
Copy link

terryworona commented Jul 23, 2020

Added the ChromaColorPicker as a subview in IB.

Screen Shot 2020-07-22 at 10 53 21 PM

Set it's top, bottom, trailing and leading constraint to safe area (i.e. constant = 0).

Screen Shot 2020-07-22 at 10 54 03 PM

There is a weird asymmetric circle crop going on.

Screen Shot 2020-07-22 at 10 50 20 PM

Is it a requirement that this view be instantiated programmatically and hardcoded to a certain width/height?

@terryworona
Copy link
Author

Followup: setting the borderColor to UIColor.clear on the ChromaColorPicker resolved the issue. Wouldn't mind having a border though :) This probably has something to do with clipping the view to a circle when given a non-square bounds?

Screen Shot 2020-07-22 at 11 05 09 PM

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