Fills content with a linear color gradient.
<LinearGradient ... />This component is backed by the platform control or container. Prefer its XML tag in an .etlua template; keep view-tree construction out of controllers.
| Name | Type | Required | Description |
|---|---|---|---|
bottomAlpha |
number | optional | Opacity of the gradient at the bottom edge. |
middleAlpha |
number | optional | Component-specific setting passed to the native control. |
middleLocation |
number | optional | Position of the middle gradient stop, from 0 to 1. |
topAlpha |
number | optional | Opacity of the gradient at the top edge. |
- UIKit uses the UIKit implementation.
Source: lua/embedded/UIKit.lua:746 (UIKit.LinearGradient)