FirebaseFirestore Framework Reference

VectorValue

class VectorValue : NSObject, @unchecked Sendable

Represents a vector type in Firestore documents.

  • Returns a copy of the raw number array that represents the vector.

  • Creates a VectorValue constructed with a copy of the given array of NSNumbers.

    Parameters

    array

    An array of NSNumbers that represents a vector.

  • Undocumented

    Declaration

    Swift

    convenience init(_ array: [Double])
  • Returns a raw number array representation of the vector.

    Declaration

    Swift

    var array: [Double] { get }

    Return Value

    An array of Double values representing the vector.