A structure used to configure sign display strategies for currency format styles.
Members (5)
get · iOS 15.0+
accounting
TypeScript
static get accounting(): CurrencyFormatStyleConfiguration_SignDisplayStrategy
Swift declaration
static var accounting: CurrencyFormatStyleConfiguration.SignDisplayStrategy { get }
A sign display strategy to use accounting principles.
This strategy always shows the currency symbol, and shows negative values in parenthesis. Examples of this strategy include `$123`, `$0`, and `($123)`.
A sign display strategy to use accounting principles, with a configurable behavior for handling zero values.
- Parameter showZero: A Boolean value that indicates whether to show the sign symbol on zero values. Defaults to `false`.
- Returns: A strategy that uses accounting principles, and the specified handling of zero values.
get · iOS 15.0+
never
TypeScript
static get never(): CurrencyFormatStyleConfiguration_SignDisplayStrategy
Swift declaration
static var never: CurrencyFormatStyleConfiguration.SignDisplayStrategy { get }
A sign display strategy to always show the sign, with a configurable behavior for handling zero values.
- Parameter showZero: A Boolean value that indicates whether to show the sign symbol on zero values. Defaults to `true`.
- Returns: A sign display strategy that always displays the sign, and uses the specified handling of zero values.
get · iOS 15.0+
automatic
TypeScript
static get automatic(): CurrencyFormatStyleConfiguration_SignDisplayStrategy
Swift declaration
static var automatic: CurrencyFormatStyleConfiguration.SignDisplayStrategy { get }
A strategy to automatically configure sign display.