DittoCounter

public class DittoCounter
extension DittoCounter: Equatable

Represents a CRDT counter that can be upserted as part of a document or assigned to a property during an update of a document.

  • The value of the counter.

    Declaration

    Swift

    public internal(set) var value: Double { get }
  • Initializes a new counter that can be used as part of a document’s content.

    Declaration

    Swift

    public convenience init()

Equatable

  • Declaration

    Swift

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