Initializer

init(_:formatter:)

Creates a text view that displays the formatted representation of a Foundation object.

Declaration 宣言

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

Parameters パラメータ

subject

An NSObject 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