GuidesAPI ReferenceRelease Notes
HomeLog InHome
Guides

BlazeWidgetItemImageGradientOverlayStyle - iOS

The BlazeWidgetItemImageGradientOverlayStyle is responsible for defining the style of the gradient on top of the image displayed on each Widget item. covers 40% of the widget item's image height.

Properties

isVisible

var isVisible: Bool

A Bool value that determines whether the gradient is visible.

startColor

var startColor: UIColor

Defines the start color of the gradient

endColor

var endColor: UIColor

Defines the end color of the gradient

position

var position: Position

A position param that defines the position of the gradient

Gradient 'Position' enum

The position of the gradient within the image.

Cases

ValueDescription
topAligns the top of the gradient to the top of the widget item.
centerAligns the gradient to be centered vertically within the widget item.
bottomAligns the bottom of the gradient to the bottom of the widget item.

Did this page help you?