Loading
A component that shows that a task is in progress.
Preview
Code Example
let model = LoadingVM {
$0.lineWidth = 6.0
$0.lineCap = .round
$0.color = .warning
$0.size = .large
}
API
LoadingVM Props
A model that defines the appearance properties for a loading indicator component.
| Name | Type | Default | Description |
|---|
color | ComponentColor | accent | The color of the loading indicator. |
lineCap | CGLineCap | .round | The style of line endings for the loader stroke. |
lineWidth | CGFloat? | nil | The width of the lines used in the loading indicator. Automatically adjusted based on size if not provided. |
size | ComponentSize? | medium | The predefined size of the loading indicator. Set to nil to expand to available layout space. |
SULoading
public init(model: LoadingVM = .init())
UKLoading
Initializers
public init(model: LoadingVM = .init())
Public Properties
| Name | Type | Description |
|---|
model | LoadingVM | A model that defines the appearance properties. |
Public Subviews
| Name | Type | Description |
|---|
shapeLayer | CAShapeLayer | A layer that draws a loader. |