Initializer

init(format:_:)

Returns a String object initialized by using a given format string as a template into which the remaining argument values are substituted.

Declaration

init(format: String, _ arguments: CVarArg...)

See Also

Creating a String Using Formats

init(format: String, arguments: [CVarArg])

Returns a String object initialized by using a given format string as a template into which the remaining argument values are substituted according to the user’s default locale.

init(format: String, locale: Locale?, CVarArg...)

Returns a String object initialized by using a given format string as a template into which the remaining argument values are substituted according to given locale information.

init(format: String, locale: Locale?, arguments: [CVarArg])

Returns a String object initialized by using a given format string as a template into which the remaining argument values are substituted according to given locale information.

static func localizedStringWithFormat(String, CVarArg...) -> String

Returns a string created by using a given format string as a template into which the remaining argument values are substituted according to the user’s default locale.