-
Notifications
You must be signed in to change notification settings - Fork 780
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
Fix view's borders when using it with corner radius allSides
#530
Conversation
d59cc7c
to
e2f57e9
Compare
e2f57e9
to
4923ea4
Compare
|
||
// if a layer mask is specified, remove it | ||
layer.mask?.removeFromSuperlayer() | ||
layer.mask = cornerSidesLayer() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can we encapsulate the code since they are very similar?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If that's ok with you, I will do the refactor in #529 since I'm already refactoring a bit the class there
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done there
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍 thanks for fixing it. Please have a look at my small comment.
Travis was failing because of the tests, I fixed most of them, but there's still one failing that I don't understand why. I welcome any idea 🤔 |
@tbaranes I'm sorry I missed this. If there's a problem with something I wrote, please tag me in the future |
You didn’t really miss it, my comment has been posted less than 2h ago! The tests are failing due to my change, your code is really clear and understandable but path are a bit tricky sometimes 😀 |
It's still going after 6 hours @_@ I hate travis |
@SD10 Yeah, travis is completely down these days, but it will fail since the test is failing locally. |
9050206
to
d932fc9
Compare
Finally understood why that last test didn't pass, travis should be green now! |
Generated by 🚫 Danger |
@tbaranes I'm not sure if you know, I just learned this a couple months ago to remove those annoying SwiftLint warnings:
|
The border doesn't respect the
allSides
radius when both are set. Using a custom layer for every radius fix this.