Initializer

init(_:formatter:)

Creates a text view that displays the formatted representation of a reference-convertible value.

Declaration 宣言

init<Subject>(_ subject: Subject, formatter: Formatter) where Subject : ReferenceConvertible

Parameters パラメータ

subject

A ReferenceConvertible instance compatible with formatter.

formatter

A Formatter capable of converting subject into a string representation.

Discussion 議論

Use this initializer to create a text view that formats subject using formatter.

See Also 参照

Creating a Text View with Formatting