UILabel with border shows shadow through foreground

Originator:yousifa
Number:rdar://38411697 Date Originated:3/13/2018
Status:Open Resolved:
Product:iOS Product Version:tested on 11+
Classification:bug Reproducible:always
 
Summary:
When adding a UILabel with text that is formatted with a shadow, fill and border (stroke), the shadow also has a border and shows through the fill of the main text. See attached screenshot.

Steps to Reproduce:
1. Create UILabel on storyboard
2. Connect to view controller
3. Using NSMutableAttributedString: add foreground color, shadow, stroke color and stroke width.

Expected Results:
Text appears with border and selected fill color, with a shadow behind the main text.

Actual Results:
Text appears with border and selected fill color, with the shadow showing through the main text.

Version/Build:
Tested on the following
iPhone 7 Plus - iOS 11.0 (15A372)
iPhone X - iOS 11.2.2 (15C202)

Configuration:
NA

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!