String

public extension String
  • Creates a String instance using the Fragments created from the builder closure

    Declaration

    Swift

    @inlinable
    init(_ indent: String, @CodeBuilder builder: () -> Code)

    Parameters

    indent

    The indent level used by the Fragments created in the function builder

    builder

    The closure that creates CodeRepresentable instances that represent Swift code