Required Initializerswift 6.0.1Swift
init(stringInterpolation:)
Creates an instance from a string interpolation.
init(stringInterpolation: Self.StringInterpolation)
Parameters
- stringInterpolation
An instance of
StringInterpolation
which has had each segment of the string literal appended to it.
Most StringInterpolation
types will store information about the literals and interpolations appended to them in one or more properties. init(stringInterpolation:)
should use these properties to initialize the instance.
Other requirements
Type members
associatedtype StringInterpolation
The type each segment of a string literal containing interpolations should be appended to.
Citizens in Swift
Default implementations
init(stringInterpolation: DefaultStringInterpolation
) Creates a new instance from an interpolated string literal.