TextShadow
The object for creating a text shadow.
Declaration
object TextShadowProperties
| Name | Type | Description |
|---|---|---|
color Required | Color | The text shadow color. |
radius Required | number | The shadow’s radius as a value, in points, between |
offset | TextShadowOffset | The shadow’s offset. |
opacity | float | The opacity of the shadow as a value between |
Discussion
Use a TextShadow object to define a shadow that Apple News can apply to characters as part of a TextStyle.
Example
{
"componentTextStyles": {
"exampleStyle": {
…
"textShadow": {
"radius": 5,
"opacity": 0.7,
"color": "#333",
"offset": {
"x": -2,
"y": 2
}
},
"fontSize": 30
}
}
}