drasto

Slovakia/Czech republic

Age: 28

May
23
awarded Good Question
May
12
comment CALayer does not respect zero shadowRadius while drawing?
@matt Please let me know if the question is hard to understand, I will edit it. Please try to specify what is confusing. I really need this solved, willing to spend all my reputation on bounties if it gets me solution.
May
12
comment CALayer does not respect zero shadowRadius while drawing?
@matt ...the relief (rounded rectangle in this case) of layer having the shadow. Unfortunatelly and very strangely it does not work. The reason seems to be that when .shadowPath is set to non-nil value of different property .shadowRadius is not zero even if I explitely set it to zero.
May
12
comment CALayer does not respect zero shadowRadius while drawing?
@matt The first drawing (on the left) is what I want, the second (on the right) is what I get instead. The left drawing is rendered without setting .shadowPath. But I must set this property to avoid performance issues (tested: Frame rate to half). Explicitelly setting .shadowPath to non-nil value improves performance significantly. The problem is that with .shadowPath set to non-nil value I never get left drawing, only right. Theoretically, I should get left drawing if I set .shadowPath to...
May
12
revised CALayer does not respect zero shadowRadius while drawing?
added 4 characters in body
May
12
awarded Popular Question
May
11
awarded Notable Question
May
11
comment CALayer does not respect zero shadowRadius while drawing?
@fluidsonic I am afraid that's wrong guess. Just tested it setting .rasterizationScale to screen scale but the result is the same. My guess would be that when .shadowPath is set than shadow radius used is for some reason maximum of default shadow radius (3 points) and actual value of .shadowRadius
May
11
revised CALayer does not respect zero shadowRadius while drawing?
added 84 characters in body
May
11
revised CALayer does not respect zero shadowRadius while drawing?
edited body
May
11
revised CALayer does not respect zero shadowRadius while drawing?
deleted 10 characters in body
May
11
revised CALayer does not respect zero shadowRadius while drawing?
deleted 10 characters in body
May
11
asked CALayer does not respect zero shadowRadius while drawing?
Apr
29
awarded Nice Question
Apr
27
comment How to suppress deprecation warning in Swift code (1.2)?
@Sulthan "You shouldn't suppress it" might acctually be the right answer...
Apr
27
comment How to suppress deprecation warning in Swift code (1.2)?
This would create serious bugs. Device orientation is not the same think as interface orientation. The 2 match most of the time but not all the time - and I need to use interface orientation.
Apr
27
asked How to suppress deprecation warning in Swift code (1.2)?
Apr
14
awarded Caucus
Apr
8
awarded Yearling
Apr
8
awarded Yearling
1 2 3 4 5