Value type

A shared formatted-value model for strings, numbers, dates, times, and durations.

A shared formatted-value model for strings, numbers, dates, times, and durations.

Public API

  • FValueType

Example

let duration: FValueType = .duration(
    5_400,
    format: .hoursMinutes
)

Text(duration.formattedValue)

Source

This reference follows Sources/FreakUI/Components/DataDisplay/FValueType.swift. Component-specific configuration is documented under the public initializer, modifier, and supporting types in that source file.