AttachedPicture

public struct AttachedPicture : Equatable

A struct used to represent an image as attached picture for the ID3 tag.

  • The image bytes as Data.

    Declaration

    Swift

    public var picture: Data
  • The ID3 type of the image (see ID3PictureType).

    Declaration

    Swift

    public var type: ID3PictureType
  • The file format. Only Jpeg and Png are supported by the standard (cross compatibility).

    Declaration

    Swift

    public var format: ID3PictureFormat
  • Init an attached picture.

    Declaration

    Swift

    public init(picture: Data, type: ID3PictureType, format: ID3PictureFormat)

    Parameters

    picture

    the image bytes as Data.

    type

    the ID3 type of the attached picture. See ID3PictureType for a complete list of the available.

    format

    the format of the image. See ID3PictureFormat. types.

  • Compare two AttachedPicture.

    Declaration

    Swift

    public static func == (lhs: AttachedPicture, rhs: AttachedPicture) -> Bool

    Parameters

    lhs

    left side of compare operation.

    rhs

    right side of compare operation.

    Return Value

    true if the attached pictures values are the same, else false.