init(stringInterpolation:)
Creates an instance from a string interpolation.
Declaration
init(stringInterpolation: Self.StringInterpolation)Parameters
- stringInterpolation:
An instance of
StringInterpolationwhich has had each segment of the string literal appended to it.
Discussion
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.