Initializer

init(stringInterpolation:)

Creates an instance from a string interpolation.

Required. Default implementation provided.

Declaration

init(stringInterpolation: Self.StringInterpolation)

Parameters

stringInterpolation

An instance of StringInterpolation which 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.

Default Implementations

ExpressibleByStringInterpolation Implementations

init(stringInterpolation: DefaultStringInterpolation)

Creates a new instance from an interpolated string literal.