One Logo Pool Ball
Foundation · IOS API REFERENCE

CurrencyFormatStyleConfiguration.SignDisplayStrategy

struct · iOS 15.0+ · SDK 27.1

struct SignDisplayStrategy

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)`.

static · iOS 15.0+

accountingAlways

TypeScript
static accountingAlways(showZero?: boolean): CurrencyFormatStyleConfiguration_SignDisplayStrategy
Swift declaration
static func accountingAlways(showZero: Bool = false) -> CurrencyFormatStyleConfiguration.SignDisplayStrategy

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 strategy to never show the sign.

static · iOS 15.0+

always

TypeScript
static always(showZero?: boolean): CurrencyFormatStyleConfiguration_SignDisplayStrategy
Swift declaration
static func always(showZero: Bool = true) -> CurrencyFormatStyleConfiguration.SignDisplayStrategy

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.

Skipped declarations

No declarations were skipped in this snapshot.

All Foundation types →