Data

public extension Data

From here: https://stackoverflow.com/a/45305316/879365

This helps us to determine the data type. It isn’t particularly robust, but is better than nothing.

  • Declaration

    Swift

    var mimeType: String { get }

    Return Value

    the best guess at the data type.