Countdown
A timer component that counts down from a specified duration to zero.
Preview

Code Example
API
CountdownVM Props
A model that defines the appearance properties for a countdown component.
Name | Type | Default | Description |
---|---|---|---|
color | ComponentColor | accent | The color of the countdown. |
locale | Locale | current | The locale used for localizing the countdown. |
localization | [Locale: UnitsLocalization] | [:] | A dictionary containing localized representations of time units (days, hours, minutes, seconds) for various locales. |
mainFont | UniversalFont? | nil | The font used for displaying the countdown numbers and trailing units. |
secondaryFont | UniversalFont? | nil | The font used for displaying the countdown bottom units. |
size | ComponentSize | medium | The predefined size of the countdown. |
style | Style | light | The visual style of the countdown component. |
unitsStyle | UnitsStyle | bottom | The visual style of the units. |
SUCountdown
public init(model: CountdownVM)
UKCountdown
Initializers
public init(model: CountdownVM)
Public Properties
Name | Type | Description |
---|---|---|
model | CountdownVM | A model that defines the appearance properties. |
Public Subviews
Name | Type | Description |
---|---|---|
stackView | UIStackView | The main container stack view containing all time labels and colon labels. |
daysLabel | UILabel | A label showing the number of days remaining. |
hoursLabel | UILabel | A label showing the number of hours remaining. |
minutesLabel | UILabel | A label showing the number of minutes remaining. |
secondsLabel | UILabel | A label showing the number of seconds remaining. |
colonLabels | [UILabel] | An array of colon labels used as separators between the time segments (days/hours/minutes/seconds). |