init(parsing:unicode:)

    Creates a text comment by parsing the given chunk data, interpreting it either as a unicode text chunk, or a latin-1 text chunk.

    PNG.Text.swift:110
    init(parsing data: [UInt8], unicode: Bool = true) throws

    Parameters

    data

    The contents of a tEXt, zTXt, or iTXt chunk to parse.

    unicode

    Specifies if the given chunk data should be interpreted as a unicode chunk, or a latin-1 chunk. It should be set to true if the original text chunk was an iTXt chunk, and false otherwise. The default value is true.

    If this flag is set to false, the text is assumed to be in english, and the language tag will be set to ["en"].

    Other members in extension

    Type members

    Instance members