Contents

class(for:)

Returns the image representation subclass that handles the specified type of data.

Declaration

class func `class`(for data: Data) -> AnyClass?

Parameters

  • data:

    The image data.

Return Value

A Class object for the image representation that can handle the data, or nil if no image representation could handle the data.

See Also

Managing Representation Subclasses of Images