DittoRGA

public class DittoRGA
extension DittoRGA: Equatable

Represents a CRDT Replicated Growable Array (RGA) that can be upserted as part of a document or assigned to a property during an update of a document.

  • The array representation of the RGA.

    Declaration

    Swift

    public internal(set) var value: [Any?] { get }
  • Initializes a new RGA that can be used as part of a document’s content.

    Declaration

    Swift

    @available(*, deprecated, message: "DittoRGA usage should be replaced. Use arrays inside DittoRegisters instead")
    public init(array: [Any?])

    Parameters

    array

    The array to use as the RGA’s representation.

Equatable

  • Declaration

    Swift

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