StateChangeEvent

struct StateChangeEvent<T> where T : Trait

A state change event for a given trait.

  • The type ID of the trait that changed.

    Declaration

    Swift

    let typeID: String
  • The previous value of the trait, if any.

    Declaration

    Swift

    let oldValue: T?
  • The new value of the trait.

    Declaration

    Swift

    let newValue: T