BlazeWidgetShimmeringStyle - iOS
BlazeWidgetShimmeringStyle defines the colors used for the shimmering (loading) animation displayed while a widget's content is loading.
It is exposed via the shimmering property on BlazeWidgetLayout.
public struct BlazeWidgetShimmeringStyle: Equatable {
public var baseColor: UIColor
public var highlightColor: UIColor
}Properties
baseColor
The base color of the shimmer effect — the background color of the skeleton placeholder.
- Default:
PresetColors.WidgetShimmerBase - Type:
UIColor
highlightColor
The highlight color of the shimmer sweep — the brightest color at the center of the moving gradient.
- Default:
PresetColors.WidgetShimmerHighlight - Type:
UIColor
Preset
BlazeWidgetShimmeringStyle.default
A static preset with the default SDK shimmer colors.
public static let `default`: BlazeWidgetShimmeringStyleUsage
The shimmering property is available on all BlazeWidgetLayout instances. Modify it to customize shimmer colors for a specific widget:
var layout = BlazeWidgetLayout.Presets.StoriesWidget.Row.circles
layout.shimmering.baseColor = UIColor(white: 0, alpha: 0.3)
layout.shimmering.highlightColor = .white
let rowWidget = BlazeStoriesWidgetRowView(layout: layout)Updated 22 days ago
Did this page help you?
