Contents

representation

The data source’s representation depending on its MIME type.

Declaration

var representation: (any WebDocumentRepresentation)! { get }

Discussion

nil if the data source is in the process of being loaded and this method is invoked before loading is complete.

You can specify the mapping between a representation and MIME type using the ``WebView/registerClass(_:representationClass:forMIMEType:)```WebView` class method.

See Also

Querying page data and state