HomeObjectUpdate

enum HomeObjectUpdate<Element> where Element : Hashable, Element : Sendable
extension HomeObjectUpdate : Equatable, Hashable, Sendable

Represents individual object updates.

  • This is the initial value received when subscribing.

    Declaration

    Swift

    case initial(Element)
  • The object was added to the User’s home graph.

    Declaration

    Swift

    case added(Element)
  • The object was deleted from the User’s home graph.

    Declaration

    Swift

    case deleted(objectID: String)
  • Some properties of the object were changed.

    Declaration

    Swift

    case changed(Element)
  • Helper property that returns the optional object associated with the update.

    Declaration

    Swift

    var object: Element? { get }