init(_:formatter:)
Creates a text view that displays the formatted representation of a Foundation object.
Declaration
init<Subject>(_ subject: Subject, formatter: Formatter) where Subject : NSObjectParameters
- subject:
An Nsobject Swift.class instance compatible with
formatter. - formatter:
A Formatter capable of converting
subjectinto a string representation.
Discussion
Use this initializer to create a text view that formats subject using formatter.