Contents

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 Swift.class 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