-
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
Mask border #101
Comments
Some potential solutions:
EDIT: Option currently implemented in the PR #99, makes |
Add |
I reopen this issue, seems mask border isn't working anymore for stars, triangle... |
That bug isn't a regression, it has always been here. In fact, we doesn't support mask border when using When setting a @IBInspectable public var maskType: String? {
didSet {
configMask()
configBorder()
}
} Whereas when using The solution would be to find a way that |
One solution could be to move the I tried this solution by casting in |
@tbaranes I just did a test and it is working currently for Since we use protocol oriented approach, it is better to keep
Same as you, I don't have any better solution for that. Maybe a new protocol called I did some experiments before to have diamond conformance for |
It works when directly used in IB, or using the setter Using view setter / IB: Using public DesignableMask method: Another solution would be to find a way to set the maskType when calling the public method of |
@tbaranes clear, because For the user, if they want to draw a mask with borders in a view. Using Any scenarios, the user can only use Because it requires architectural changes. Sometimes, we have to sacrifice some nice API to maintain cleaner architecture. But I am open to any better solution. |
Agreed. It will be nicer to privatise these methods in order to avoid that case. Gonna make a PR. |
@tbaranes thanks, nice to chat with you to figure out a better solution😀/workaround😂. |
As @lexrus pointed out in #99, we currently doesn't draw well the borders when a maskType is specified.
I join Lex to say that is a really annoying miss since a new user can be disappointed by the library.
Any thought of how we can handle this issue?
The text was updated successfully, but these errors were encountered: