Contents

String.LocalizationValue.Placeholder

An enumeration of types that can appear as a placeholder in a string interpolation.

Declaration

enum Placeholder

Overview

Foundation uses this type when you create a string with the \(placeholder: type) syntax and supply an array of replacement values in a String.LocalizationOptions. Placeholders work with String initializers that take an options: parameter:

You only use this type directly when specifying one of its enumeration cases in the placeholder syntax, like \(placeholder: .int).

Topics

Placeholder types