Data

public extension Data
  • Returns a SHA 256 stable hash from the data.

    Declaration

    Swift

    var sha256Hash: SHA256.Digest { get }
  • Returns the SHA 256 stable hash as a string.

    Declaration

    Swift

    var sha256HashString: String { get }
  • Returns the first 64 bits of the SHA 256 stable hash as an integer.

    Declaration

    Swift

    var sha256HashInt: Int { get }
  • Uses a NSKeyedArchiver to decode the color from a data object.

    Declaration

    Swift

    func asUIColor() -> UIColor?

    Return Value

    The decoded color.