Nuke Documentation

Structure Image​Type

public struct ImageType: ExpressibleByStringLiteral, Hashable  

A uniform type identifier (UTI).

ImageType ImageType Hashable Hashable ImageType->Hashable ExpressibleByStringLiteral ExpressibleByStringLiteral ImageType->ExpressibleByStringLiteral

Conforms To

ExpressibleByStringLiteral
Hashable

Initializers

init(raw​Value:​)

public init(rawValue: String)  

init(string​Literal:​)

public init(stringLiteral value: String)  

init?(_:​)

init?(_ data: Data)  

Determines a type of the image based on the given data.

Properties

raw​Value

public let rawValue: String

png

public static let png: ImageType = "public.png"

jpeg

public static let jpeg: ImageType = "public.jpeg"

gif

public static let gif: ImageType = "com.compuserve.gif"

heic

public static let heic: ImageType = "public.heic"

HEIF (High Efficiency Image Format) by Apple.

webp

public static let webp: ImageType = "public.webp"

WebP

Native decoding support only available on the following platforms: macOS 11, iOS 14, watchOS 7, tvOS 14.