Instance Method
sign(strategy:)
iOS 15.0+
iPadOS 15.0+
Mac Catalyst 15.0+
macOS 12.0+
tvOS 15.0+
watchOS 8.0+
Modifies the format style to use the specified sign display strategy for displaying or omitting sign symbols.
func sign(strategy: Decimal.FormatStyle.Currency.Configuration.SignDisplayStrategy) -> Decimal.FormatStyle.Currency
Parameters
strategyThe sign display strategy to apply to the format style.
Return Value
A decimal currency format style modified to use the specified sign display strategy.