Loading
A component that shows that a task is in progress.
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.
Name | Type | Default | Description |
---|
color | ComponentColor | accent | The color of the loading indicator. |
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. |
style | Style | spinner | The style of the loading indicator (e.g., spinner, bar). |
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. |