Loading

A component that shows that a task is in progress.

Preview

Button Preview

Code Example

let model = LoadingVM {
  $0.lineWidth = 6.0
  $0.color = .warning
  $0.size = .large
}

API

LoadingVM Props

A model that defines the appearance properties for a loading indicator component.

NameTypeDefaultDescription
colorComponentColoraccentThe color of the loading indicator.
lineWidthCGFloat?nilThe width of the lines used in the loading indicator. Automatically adjusted based on size if not provided.
sizeComponentSizemediumThe predefined size of the loading indicator.
styleStylespinnerThe style of the loading indicator (e.g., spinner, bar).

SULoading

public init(model: LoadingVM = .init())

UKLoading

Initializers

public init(model: LoadingVM = .init())

Public Properties

NameTypeDescription
modelLoadingVMA model that defines the appearance properties.

Public Subviews

NameTypeDescription
shapeLayerCAShapeLayerA layer that draws a loader.